[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/core/ChangeDetectionStrategy [Back]  [Original]

ChangeDetectionStrategy Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/core

ChangeDetectionStrategy

enum
stable

The strategy that the default change detector uses to detect changes. When set, takes effect the next time change detection is triggered.

Change detection usageSkipping component subtrees

On this page

    arrow_upward_alt Back to the top

    API

    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.

    NOTE: OnPush is enabled by default.

    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.

    This value is equivalent to setting Eager and is due to be removed.

    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page