Q. Which lifecycle hook is called before ngOnInit and when any data-bound property changes?

  • (A) ngOnChanges
  • (B) ngAfterViewInit
  • (C) ngDoCheck
  • (D) ngOnDestroy
πŸ’¬ Discuss
βœ… Correct Answer: (A) ngOnChanges
Explanation: ngOnChanges is called whenever data-bound input properties change.
Explanation by: Mr. Dubey
ngOnChanges is called whenever data-bound input properties change.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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