Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/v2/guide/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -962,9 +962,11 @@ When registering components (or props), you can use kebab-case, camelCase, or Ti
``` js
// in a component definition
components: {
// register using camelCase
// register using kebab-case
'kebab-cased-component': { /* ... */ },
// register using camelCase
'camelCasedComponent': { /* ... */ },
// register using TitleCase
'TitleCasedComponent': { /* ... */ }
}
```
Expand All @@ -978,7 +980,7 @@ Within HTML templates though, you have to use the kebab-case equivalents:
<title-cased-component></title-cased-component>
```

When using _string_ templates however, we're not bound by HTML's case-insensitive restrictions. That means even in the template, you reference your components and props using camelCase, PascalCase, or kebab-case:
When using _string_ templates however, we're not bound by HTML's case-insensitive restrictions. That means even in the template, you reference your components and props using camelCase, TitleCase, or kebab-case:

``` html
<!-- use whatever you want in string templates! -->
Expand Down