ngAfterViewInit is called after ngAfterContentChecked(). This method is initialized when Angular initializes the component’s view and child views. It executes when the component’s view is fully initialized.