Making components clean up.
This commit is contained in:
parent
1e10270f98
commit
5b53263650
@ -1,4 +1,12 @@
|
|||||||
|
.statement
|
||||||
|
h4 Live Examples
|
||||||
|
p.
|
||||||
|
If you want to skip to the working examples you can check out these links on Plunker. <a href='http://plnkr.co/edit/lt7vPiJYwkHDKaTHGCUC?p=preview')>TypeScript Example</a> or <a href='http://plnkr.co/edit/CqquuEyUw2LgwY0IrXUZ?p=preview'> ES5 Example</a>.
|
||||||
|
|
||||||
.l-main-section
|
.l-main-section
|
||||||
|
|
||||||
|
h2#section-its-all-a-tree It's all a tree
|
||||||
|
|
||||||
p.
|
p.
|
||||||
As mentioned earlier, you build Angular applications as a tree of nested components. You've seen how to create
|
As mentioned earlier, you build Angular applications as a tree of nested components. You've seen how to create
|
||||||
a top-level component. You add child components to a parent component by using them in the parent component's
|
a top-level component. You add child components to a parent component by using them in the parent component's
|
||||||
@ -83,5 +91,3 @@
|
|||||||
p.
|
p.
|
||||||
Notice that in addition to using the <code><child></code> element in the parent template, you also need to
|
Notice that in addition to using the <code><child></code> element in the parent template, you also need to
|
||||||
add <code>ChildComponent</code> in <code>ParentComponent</code>'s list of directives
|
add <code>ChildComponent</code> in <code>ParentComponent</code>'s list of directives
|
||||||
p.
|
|
||||||
[TODO: Motivate communication between components with iterator example that passes index to the child]
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user