Skip to content

Commit 9c1ce7d

Browse files
committed
Merge pull request #218 from kazupon/improve/registration
improve component registration explanation
2 parents 4beb01b + eb5f9b1 commit 9c1ce7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To use this constructor as a component, you need to **register** it with `Vue.co
2323
Vue.component('my-component', MyComponent)
2424
```
2525

26-
Note that Vue.js does not enforce the [W3C rules](http://www.w3.org/TR/custom-elements/#concepts) for custom tag-names (all-lowercase, must contain a hyphen) though following this convention is considered good practice.
26+
<p class="tip">Note that Vue.js does not enforce the [W3C rules](http://www.w3.org/TR/custom-elements/#concepts) for custom tag-names (all-lowercase, must contain a hyphen) though following this convention is considered good practice.</p>
2727

2828
Once registered, the component can now be used in a parent instance's template as a custom element, `<my-component>`. Make sure the component is registered **before** you instantiate your root Vue instance. Here's the full example:
2929

0 commit comments

Comments
 (0)