37 lines
701 B
Plaintext
37 lines
701 B
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/pipe_transform.ts#L1-L16">angular2/src/change_detection/pipe_transform.ts (line 1)</a>
|
|
|
|
:markdown
|
|
An interface which all pipes must implement.
|
|
|
|
#Example
|
|
|
|
```
|
|
class DoublePipe implements PipeTransform {
|
|
transform(value, args = []) {
|
|
return `${value}${value}`;
|
|
}
|
|
}
|
|
```
|
|
|
|
|
|
.l-main-section
|
|
h2 Members
|
|
.l-sub-section
|
|
h3 transform
|
|
|
|
|
|
pre.prettyprint
|
|
code.
|
|
transform(value: any, args: List<any>)
|
|
|
|
:markdown
|
|
|
|
|
|
|
|
|
|
|
|
|