Use OnPush strategy if your objects are immutable and you doesn't change the state of the objects in your component. It will perform better rather than default where each change of the object make run change detector to resolve changes. More or less similar is described in Change Detection Strategy: OnPush
To inform Angular that we are going to comply with the conditions mentioned before to improve performance, we will use the OnPush change detection strategy.
The Angular docs said
ChangeDetectionStrategy
Members
import { Component, ChangeDetectionStrategy } from '@angular/core';
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'page1',
templateUrl: 'page1.html',
})