ChangeDetectionStrategy • Angular
OnPush
Use the CheckOnce strategy, meaning that automatic change detection is deactivated
until reactivated by setting the strategy to Default (CheckAlways).
Change detection can still be explicitly invoked.
This strategy applies to all child directives and cannot be overridden.
Eager
Use the Eager strategy, meaning that the component is checked eagerly when the change
detection traversal reaches it, rather than only checking under certain circumstances (e.g.
markForCheck, a signal in the template changed, etc).
Default
@deprecated
Use Eager instead.
Use the default CheckAlways strategy, in which change detection is automatic until
explicitly deactivated.