As the title says: I\'m working on a very big project and in few components I\'ve used ChangeDetectionStrategy.OnPush
to avoid bad performances. I was wondering
Especially with very big projects, the OnPush
strategy is recommended to decrease the change detection process that it is a very expensive operation.
With inherited projects, the recommendation is to start applying the OnPush
strategy from the leaf components and check that everything is still working.
Only at this point, follow the ancestors and go up one level at time to the root. In the end the overall performance will benefit.
Here there is a very good article about change detection in Angular.