В чем разница между @ViewChild() и @ContentChild()?
@ContentChild и @ViewChild используются для доступа к первому элементу или директиве, соответствующим селектору.
@ContentChild:
ngAfterContentInit (после ngOnInit и ngDoCheck)@ViewChild:
ngAfterViewInit (после ngAfterContentInit и ngAfterContentChecked)@Component или @Directive<my-component #cmp></my-component> через @ViewChild('cmp'))@ViewChild(SomeService) someService: SomeService)TemplateRef (т.е. @ViewChild(TemplateRef) template)Отметьте свой прогресс