ChangeDetectorRef class abstract
Provides influence over how change detection should execute for a component.
In practice, this is often used just for markForCheck, which sets a
component that uses ChangeDetectionStrategy.OnPush
as dirty for future
change detection.
NOTE: This API is currently transitional. Please use carefully, and
avoid methods that are marked @Deprecated(...)
, as they will be eventually
removed entirely.
- Available extensions
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
detachDeprecated(
) → void - See DeprecatedChangeDetectorRef.detach for details.
-
detectChangesDeprecated(
) → void - See DeprecatedDetectChanges.detectChanges for details.
-
markChildForCheck(
Object child) → void -
Invokes markForCheck on
child
's associated ChangeDetectorRef. -
markForCheck(
) → void -
Marks this and all
ChangeDetectionStrategy.OnPush
ancestors as dirty. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reattachDeprecated(
) → void - See DeprecatedChangeDetectorRef.reattach for details.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited