Skip to content

Commit 9e6c1d0

Browse files
committed
clarify that should not be used in components
1 parent b811c2a commit 9e6c1d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/guide/components.md

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ new Vue({ el: '#example' })
7474

7575
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.
7676

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+
7779
### Local Registration
7880

7981
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

Comments
 (0)