Q. Which Angular lifecycle hook is called when data-bound input properties change?

  • (A) ngOnInit
  • (B) ngOnChanges
  • (C) ngAfterViewInit
  • (D) ngOnDestroy
πŸ’¬ Discuss
βœ… Correct Answer: (B) ngOnChanges
Explanation: ngOnChanges is called whenever an input property value changes.
Explanation by: Mr. Dubey
ngOnChanges is called whenever an input property value changes.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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