ngAfterViewInit() of AppComponent is a lifecycle callback Angular calls after the root component and its children have been rendered and it should fit for your purpose.
See also https://angular.io/guide/lifecycle-hooks
ngAfterViewInit() of AppComponent is a lifecycle callback Angular calls after the root component and its children have been rendered and it should fit for your purpose.
See also https://angular.io/guide/lifecycle-hooks