A

Admin • 825.56K Points
Coach

Q. What does `ngOnChanges` lifecycle hook do?

  • (A) Detects and responds to changes in input properties
  • (B) Initializes the component
  • (C) Cleans up the component
  • (D) Handles change detection
  • Correct Answer - Option(A)
  • Views: 7
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
`ngOnChanges` is called when input-bound properties change.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.