A

Admin • 833.24K Points
Coach

Q. Which lifecycle hook is called when Angular sets or resets data-bound input properties?

  • (A) ngOnInit
  • (B) ngOnChanges
  • (C) ngAfterViewInit
  • (D) ngOnDestroy
  • Correct Answer - Option(B)
  • Views: 24
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

ngOnChanges runs whenever an input property changes.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.