You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/guide/components.md
+2
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,8 @@ new Vue({ el: '#example' })
74
74
75
75
Note the component's template **replaces** the custom element, which only serves as a **mounting point**. This behavior can be configured using the `replace` instance option.
76
76
77
+
Also note that components are provided a template instead of mounting with the `el` option! Only the root Vue instance (defined using `new Vue`) will include an `el` to mount to).
78
+
77
79
### Local Registration
78
80
79
81
You don't have to register every component globally. You can make a component available only in the scope of another component by registering it with the `components` instance option:
0 commit comments