πŸ“Š Angular
Q. Which lifecycle hook is used to initiate animations in Angular?
  • (A) ngOnInit
  • (B) ngAfterViewInit
  • (C) ngDoCheck
  • (D) ngOnDestroy
πŸ’¬ Discuss
βœ… Correct Answer: (B) ngAfterViewInit

Explanation: Animations depending on the DOM should be initiated in ngAfterViewInit.

Explanation by: Mr. Dubey
Animations depending on the DOM should be initiated in ngAfterViewInit.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
34
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
95%
Success Rate