Describes within the change detector which strategy will be used the next time change detection is triggered.

Constants

CheckAlways ChangeDetectionStrategy

After calling detectChanges the mode of the change detector will remain CheckAlways.

const ChangeDetectionStrategy(2)
Checked ChangeDetectionStrategy

The change detector should be skipped until its mode changes to CheckOnce.

const ChangeDetectionStrategy(1)
CheckOnce ChangeDetectionStrategy

After calling detectChanges the mode of the change detector will become Checked.

const ChangeDetectionStrategy(0)
Default ChangeDetectionStrategy

The change detector's mode will be set to CheckAlways during hydration.

const ChangeDetectionStrategy(6)
Detached ChangeDetectionStrategy

The change detector sub tree is not a part of the main tree and should be skipped.

const ChangeDetectionStrategy(3)
OnPush ChangeDetectionStrategy

The change detector's mode will be set to CheckOnce during hydration.

const ChangeDetectionStrategy(4)
Stateful ChangeDetectionStrategy

The component manages state itself and explicitly calls setState to notify Angular to update template.

const ChangeDetectionStrategy(5)
values → List<ChangeDetectionStrategy>

A constant List of the values in this enum, in order of their declaration.

const List<ChangeDetectionStrategy>

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
index → int
read-only
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited