WrappedValue

Stable Class

Class Overview

class WrappedValue {
  staticwrap(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

doc_Angular
2016-10-06 09:47:13
Comments
Leave a Comment

Please login to continue.