πŸ“Š Angular
Q. Which Angular lifecycle hook is called after the component's view and child views are initialized?
  • (A) ngOnInit
  • (B) ngAfterViewInit
  • (C) ngAfterContentInit
  • (D) ngOnDestroy
πŸ’¬ Discuss
βœ… Correct Answer: (B) ngAfterViewInit

Explanation: ngAfterViewInit is triggered after the component’s view and its children are fully initialized.

Explanation by: Mr. Dubey
ngAfterViewInit is triggered after the component’s view and its children are fully initialized.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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