52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
|
|
p.location-badge.
|
|
exported from <a href='../change_detection'>angular2/change_detection</a>
|
|
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.34/modules/angular2/src/change_detection/change_detection_util.ts#L5-L33">angular2/src/change_detection/change_detection_util.ts (line 5)</a>
|
|
|
|
:markdown
|
|
Indicates that the result of a <a href='../annotations/Pipe-var.html'><code>Pipe</code></a> 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
|
|
}
|
|
```
|
|
|
|
|
|
.l-main-section
|
|
h2 Members
|
|
.l-sub-section
|
|
h3 constructor
|
|
|
|
|
|
pre.prettyprint
|
|
code.
|
|
constructor(wrapped: any)
|
|
|
|
:markdown
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.l-sub-section
|
|
h3 wrapped
|
|
|
|
|
|
:markdown
|
|
|
|
|
|
|
|
|
|
|
|
|