Q. What lifecycle hook is called after Angular has initialized all data-bound properties?

  • (A) ngOnInit
  • (B) ngAfterViewInit
  • (C) ngOnChanges
  • (D) ngOnDestroy
πŸ’¬ Discuss
βœ… Correct Answer: (A) ngOnInit
Explanation: ngOnInit is called once after the first ngOnChanges.
Explanation by: Mr. Dubey
ngOnInit is called once after the first ngOnChanges.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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