我是Angular2的新手,想要澄清一些概念,因为我提到了许多其他帖子,但仍不清楚。问题是我无法理解在教程中使用的高级语言,所以请任何人都能以简单的语言帮助我理解。Angular2:装饰者之间的区别
- @Input,@output和@ViewChild有什么区别。我们可以使用@output访问子数据,因此@viewchild与@Output不同@
- 什么是@viewContent?任何例子
- 是他们没有办法从孩子访问父内容就像我们使用@ViewChild访问子内容
- ngOnChanges,ngOnInit,ngDoCheck & ngOnDestroy
- 我感到困惑与术语初始化组件/指令。
- ngAfterContentInit,ngAfterContentChecked,ngAfterViewInit & ngAfterViewChecked?
相关[生命周期鱼钩]文档(https://angular.io/docs/ts/latest/guide/lifecycle-hooks.html) – Ploppy
文档相关[组件交互](https://angular.io/docs/ts/latest/cookbook/component-communication.html#!#bidirectional-service) – Ploppy
如果您是Angular的新手,那么有官方的[Learning Angular guide ](https://angular.io/docs/ts/latest/guide/learning-angular.html) – Ploppy