WrappedValue
Stable
Class
Class Overview
class WrappedValue { static wrap(value: any) : WrappedValue constructor(wrapped: any) wrapped : any }
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
Class Details
wrapped : any
exported from @angular/core/index, defined in @angular/core/src/change_detection/change_detection_util.ts
© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v2.angular.io/docs/ts/latest/api/core/index/WrappedValue-class.html