Skip to content

Commit 985ce02

Browse files
kazuponyyx990803
authored andcommitted
add component name section to spec docs (vuejs#578)
ref vuejs#495
1 parent 89cf9f3 commit 985ce02

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/en/start/spec.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ Beware that `src` imports follow the same path resolution rules to CommonJS `req
8383
<style src="todomvc-app-css/index.css">
8484
```
8585
86+
### Component Name
87+
88+
If you don't specified the component name with [name](https://vuejs.org/v2/api/#name) component option, by default, it's named based on your `*.vue` filename (no `.vue` extention).
89+
8690
### Syntax Highlighting
8791
8892
Currently there is syntax highlighting support for [Sublime Text](https://github.com/vuejs/vue-syntax-highlight), [Atom](https://atom.io/packages/language-vue), [Vim](https://github.com/posva/vim-vue), [Visual Studio Code](https://marketplace.visualstudio.com/items/liuji-jim.vue), [Brackets](https://github.com/pandao/brackets-vue), and [JetBrains products](https://plugins.jetbrains.com/plugin/8057) (WebStorm, PhpStorm, etc). Contributions for other editors/IDEs are highly appreciated! If you are not using any pre-processors in Vue components, you can also get by by treating `*.vue` files as HTML in your editor.

0 commit comments

Comments
 (0)