πŸ“Š Angular
Q. Which lifecycle hook is called after Angular has initialized all data-bound properties?
  • (A) ngOnInit
  • (B) ngAfterViewInit
  • (C) ngOnChanges
  • (D) ngDoCheck
πŸ’¬ Discuss
βœ… Correct Answer: (A) ngOnInit

Explanation: ngOnInit is called once after the first ngOnChanges and is used for component initialization.

Explanation by: Mr. Dubey
ngOnInit is called once after the first ngOnChanges and is used for component initialization.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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