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

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