#ChangeDetectionStrategie
2 messages · Page 1 of 1 (latest)
Depends.
If you want the default to be onPush right now - Yes.
Right now you have to change it every time because the Default is different.
You can make your life marginally if you use ng generate component or ng g c by configuring in angular.json that it should by default set the ChangeDetectionStrategy value for you.
In the next Angular versions it will be superfluous, because iirc in v22 the default will change to be OnPush