Q. Which lifecycle hook is triggered after Angular projects external content into a component?

  • (A) ngOnInit
  • (B) ngAfterContentInit
  • (C) ngAfterViewInit
  • (D) ngDoCheck
πŸ’¬ Discuss
βœ… Correct Answer: (B) ngAfterContentInit
Explanation: ngAfterContentInit is called after content projection is done.
Explanation by: Mr. Dubey
ngAfterContentInit is called after content projection is done.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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