Question: what is ngafterviewinit in angular 2?
Answer: Angular ngAfterViewInit() ... ngAfterViewInit() is a lifecycle hook that is called after Angular has fully initialized a component's views. ngAfterViewInit() is used to handle any additional initialization tasks.