Class Overview
class WrappedValue {
static wrap
(value: any) : WrappedValue
}
Class Description
Indicates that the result of a Pipe
transformation has changed even though the
reference
has not changed.
The wrapped value will be unwrapped by change detection, and the unwrapped value will be stored.
Example:
if (this._latestValue === this._latestReturnedValue) {
return this._latestReturnedValue;
} else {
this._latestReturnedValue = this._latestValue;
return WrappedValue.wrap(this._latestValue); // this will force update
}
Constructor
constructor(wrapped: any)
Static Members
wrap(value: any) : WrappedValue
exported from core/index,
defined in core/src/change_detection/change_detection_util.ts