R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which lifecycle hook runs every time a change is detected?

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

Explanation by: Ram Sharma
ngDoCheck is invoked during every change detection cycle.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.