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

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