摘要:
We can use @ViewChild with component: By doing this, we actually can access component's prop and events. If we want to get component DOM node, what we 阅读全文
posted @ 2017-02-20 00:40
Zhentiw
阅读(387)
评论(0)
推荐(0)
摘要:
When you use @ViewChildren, the value can only be accessable inside ngAfterViewInit lifecycle. This is somehow different from @ViewChild, which value 阅读全文
posted @ 2017-02-20 00:31
Zhentiw
阅读(1566)
评论(0)
推荐(0)
摘要:
For example we have a component: For TodoAppComponent, we make 'TodoList' as 'viewProviders'. And inside TodoAppComponent, we have TodoInputComponent 阅读全文
posted @ 2017-02-20 00:19
Zhentiw
阅读(661)
评论(0)
推荐(0)

浙公网安备 33010602011771号