Q. What does `ngOnChanges` do?

  • (A) Executes when the app starts
  • (B) Executes when input properties change
  • (C) Executes when the view is initialized
  • (D) Executes when the component is destroyed
πŸ’¬ Discuss
βœ… Correct Answer: (B) Executes when input properties change
Explanation: ngOnChanges is triggered when input property values change.
Explanation by: Mr. Dubey
ngOnChanges is triggered when input property values change.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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