class
deprecated
Indicates that the result of a Pipe
transformation has changed even though the reference has not changed.
Deprecated: from v10 stop using. (No replacement, deemed unnecessary.)
class WrappedValue { static wrap(value: any): WrappedValue static unwrap(value: any): any static isWrapped(value: any): value is WrappedValue constructor(value: any) wrapped: any }
Wrapped values are unwrapped automatically during the change detection, and the unwrapped value is stored.
Example:
if (this._latestValue === this._latestReturnedValue) { return this._latestReturnedValue; } else { this._latestReturnedValue = this._latestValue; return WrappedValue.wrap(this._latestValue); // this will force update }
wrap() |
---|
Creates a wrapped value. |
unwrap() | |||
---|---|---|---|
Returns the underlying value of a wrapped value. Returns the given | |||
|
value | any |
any
isWrapped() | |||
---|---|---|---|
Returns true if | |||
|
value | any |
value is WrappedValue
|
value | any |
Property | Description |
---|---|
wrapped: any |
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v11.angular.io/api/core/WrappedValue