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

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