p.location-badge.
exported from angular2/change_detection
defined in angular2/src/change_detection/pipes/pipe.ts (line 28)
:markdown
An interface which all pipes must implement.
#Example
```
class DoublePipe implements Pipe {
supports(obj) {
return true;
}
onDestroy() {}
transform(value, args = []) {
return `${value}${value}`;
}
}
```
.l-main-section
h2 Members
.l-sub-section
h3 supports
pre.prettyprint
code.
supports(obj: any)
:markdown
Query if a pipe supports a particular object instance.
.l-sub-section
h3 onDestroy
pre.prettyprint
code.
onDestroy()
:markdown
.l-sub-section
h3 transform
pre.prettyprint
code.
transform(value: any, args: List<any>)
:markdown