Which lifecycle hook runs after every change detection cycle?

  1. ngOnInit
  2. ngAfterViewInit
  3. ngDoCheck
  4. ngOnDestroy
Correct answer ngDoCheck

Explanation

ngDoCheck runs during every change detection cycle.

Update: Admin added a tag on this question

Topics

By Admin · · 28 views