2015-07-27 22:12:30 -07:00
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
2015-08-02 23:08:36 -07:00
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.33/modules/angular2/src/change_detection/pipes/pipe.ts#L58-L78">angular2/src/change_detection/pipes/pipe.ts (line 58)</a>
2015-07-27 22:12:30 -07:00
:markdown
2015-07-28 13:28:47 -07:00
Provides default implementation of `supports` and `onDestroy` method.
2015-07-27 22:12:30 -07:00
#Example
```
2015-07-28 13:28:47 -07:00
class DoublePipe extends BasePipe {
2015-07-27 22:12:30 -07:00
transform(value) {
return `${value}${value}`;
}
}
```
2015-07-28 13:28:47 -07:00
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation CONST
pre.prettyprint
code.
@CONST()
2015-07-27 22:12:30 -07:00
.l-main-section
h2 Members
.l-sub-section
h3 supports
pre.prettyprint
code.
supports(obj: any)
:markdown
.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