How to set the default change detection strategy to OnPush
? Can it be set globally somehow?
I want to avoid having to adding this line to every component
@Component({
...
changeDetection: ChangeDetectionStrategy.OnPush,
...
})
See Question&Answers more detail:os