Since getComponent is no longer available i have the next scenario.
Inside app.ts and app.html i have a menu component and a nav component. Inside the nav component i am
Variables queried by @ViewChild() and @ViewChildren() are not initialized before ngAfterViewInit() was called. If you refer to tabs in the constructor or ngOnInit() it will be null.
@ViewChild()
@ViewChildren()
ngAfterViewInit()
tabs
ngOnInit()
null