摘要:
Content is what is passed as children. View is the template of the current component. The view is initialized before the content and ngAfterViewInit() 阅读全文
posted @ 2017-02-19 23:40
Zhentiw
阅读(2330)
评论(0)
推荐(0)
摘要:
*The children element which are located inside of its template of a component are called *view children *. On the other hand, **elements which are use 阅读全文
posted @ 2017-02-19 23:31
Zhentiw
阅读(710)
评论(0)
推荐(0)
摘要:
We have looked at @ContentChild in article(http://www.cnblogs.com/Answer1215/p/6414657.html). Now let's how to query multi children by using @ContentC 阅读全文
posted @ 2017-02-19 01:34
Zhentiw
阅读(1210)
评论(0)
推荐(0)
摘要:
@ContentChild normally works with ngAfterContentInit lifecycle. @ContentChild is used for looking into child component's props. For example, we a app 阅读全文
posted @ 2017-02-19 01:12
Zhentiw
阅读(1274)
评论(0)
推荐(0)
摘要:
For example there is tow form compoennts on the page, and what we want to do is reusing the form component. Make to tow form behave differently, we ca 阅读全文
posted @ 2017-02-19 00:48
Zhentiw
阅读(410)
评论(0)
推荐(0)

浙公网安备 33010602011771号