A

Admin • 828.70K Points
Coach

Q. Which lifecycle hook is called before ngOnInit and when any data-bound property changes?

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

Explanation by: Admin
ngOnChanges is called whenever data-bound input properties change.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.