Q. Which lifecycle hook is invoked when Angular finishes creating the component's view?

  • (A) ngAfterViewInit
  • (B) ngOnInit
  • (C) ngOnChanges
  • (D) ngAfterContentInit
πŸ’¬ Discuss
βœ… Correct Answer: (A) ngAfterViewInit
Explanation: ngAfterViewInit is called after the component's view and child views are initialized.
Explanation by: Mr. Dubey
ngAfterViewInit is called after the component's view and child views are initialized.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
64
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
86%
Success Rate