There’s one question that comes up again and again on stackoverflow. The question is about ngDoCheck lifecycle hook that is triggered for a component that implements OnPush change detection strategy. It’s usually formulated something like:

I have used OnPush strategy for my component and no bindings have changed, but the ngDoCheck lifecycle hook is still triggered. Is the strategy not working?

Source: If you think `ngDoCheck` means your component is being checked — read this article

Posted in: Articles.
Last Modified: August 20, 2017

Leave a Reply