ChangeDetectionStrategy class

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

! Changes to this class require updates to view_compiler/constants.dart.

Constructors

ChangeDetectionStrategy()

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, 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

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited

Constants

CheckAlways → const int
After calling detectChanges the mode of the change detector will remain CheckAlways.
3
Checked → const int
The change detector should be skipped until its mode changes to CheckOnce.
2
CheckOnce → const int
After calling detectChanges the mode of the change detector will become Checked.
1
Default → const int
The change detector's mode will be set to CheckAlways during hydration.
0
Detached → const int
The change detector sub tree is not a part of the main tree and should be skipped.
4
OnPush → const int
The change detector's mode will be set to CheckOnce during hydration.
5
Stateful → const int
The component manages state itself and explicitly calls setState to notify Angular to update template.
6