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
-
detach(
) → void -
Available on ChangeDetectorRef, provided by the DeprecatedChangeDetectorRef extension
Detaches the component from the change detection hierarchy. -
detachDeprecated(
) → void - See DeprecatedChangeDetectorRef.detach for details.
-
detectChanges(
) → void -
Available on ChangeDetectorRef, provided by the DeprecatedDetectChanges extension
Forces synchronous change detection of this component and its children. -
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
-
reattach(
) → void -
Available on ChangeDetectorRef, provided by the DeprecatedChangeDetectorRef extension
Reattaches a component that was detach-ed previously from the hierarchy. -
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