M

Mr. Dubey • 100.28K Points
Coach

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
  • Correct Answer - Option(B)
  • Views: 19
  • Filed under category Angular

Explanation by: Mr. Dubey
ngOnChanges is triggered when input property values change.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics