Skip to content

Commit ed57c37

Browse files
LinusBorgchrisvfritz
authored andcommitted
remove wrong statement about el: option. (vuejs#504)
1 parent 20409ea commit ed57c37

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/guide/components.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,6 @@ new Vue({
213213
</script>
214214
{% endraw %}
215215

216-
The `el` option also requires a function value when used in a component instance, for exactly the same reason.
217-
218216
### Composing Components
219217

220218
Components are meant to be used together, most commonly in parent-child relationships: component A may use component B in its own template. They inevitably need to communicate to one another: the parent may need to pass data down to the child, and the child may need to inform the parent of something that happened in the child. However, it is also very important to keep the parent and the child as decoupled as possible via a clearly-defined interface. This ensures each component's code can be written and reasoned about in relative isolation, thus making them more maintainable and potentially easier to reuse.

0 commit comments

Comments
 (0)