From eb5f9b10d456550b790845aabd880f33dd0cd0f2 Mon Sep 17 00:00:00 2001 From: kazuya kawaguchi Date: Fri, 18 Dec 2015 13:28:01 +0900 Subject: [PATCH] improve component registration explanation --- src/guide/components.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/components.md b/src/guide/components.md index 205e9444da..ec05cff1df 100644 --- a/src/guide/components.md +++ b/src/guide/components.md @@ -23,7 +23,7 @@ To use this constructor as a component, you need to **register** it with `Vue.co Vue.component('my-component', MyComponent) ``` -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. +

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.

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