πŸ“Š 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

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