As far as I understand, declaring changeDetection: ChangeDetectionStrategy.OnPush
on a component means that it will only update when one of its input values is changed specifically, rather than checking for changes when its parent(s) values change. If that is the case, why wouldn't OnPush
be the default setting. Is there a case where we wouldn't want this behaviour?
Asked
Active
Viewed 35 times
0

SiddAjmera
- 38,129
- 5
- 72
- 110

abyrne85
- 1,370
- 16
- 33
-
I've asked the same question one hour ago. hope that helps you: https://stackoverflow.com/questions/53426412/should-use-changedetectionstrategy-onpush-for-eveything – Jacopo Sciampi Nov 22 '18 at 09:54
-
What are the chances! It helps a lot. Thanks – abyrne85 Nov 22 '18 at 10:03