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

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