python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Unable to show loader on screen between ngOnInit and ngAfterViewInit lifecycle hooks in Angular
I have an angular component which has some components on its template which take some time to load, As a result the control to ngAfterViewinit() lifecycle hook reaches after some time (~20s) after the...
Madhur Maurya
Votes: 0
Answers: 2
Can we set the input properties in ngAfterViewInit() instead of ngOnInIt()?
Generally ngOnInit() is used to set input properties when the component initialized. Similarly can we set the same input properties in ngAfterViewInit() instead of ngOnInit() ?. Can we implement all t...

Ragini Gunnam
Votes: 0
Answers: 1
Angular - avoiding setTimeout() hack to get div width
Wrote an Angular 13 component that draws something in a div whenever the window resizes.
The problem is getting the rendered width of the div. If I do not use setTimeout() with a 170ms delay, this.tre...
nstuyvesant
Votes: 0
Answers: 2
How to debug significant time difference between constructor and ngOnInit()
I have an angular app, where i open an angular material dialog. The opening of the dialog is triggered from two different places in my code. When I trigger it from place A, the dialog component loads ...
Philipp
Votes: 0
Answers: 0