angular-docs-cn/public/docs/js/latest/api/annotations/PipeFactory-interface.jade

25 lines
583 B
Plaintext

p.location-badge.
exported from <a href='../annotations'>angular2/annotations</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.34/modules/angular2/src/core/annotations/decorators.ts#L345-L370">angular2/src/core/annotations/decorators.ts (line 345)</a>
:markdown
<a href='Pipe-var.html'><code>Pipe</code></a> factory for creating decorators.
## Example as TypeScript Decorator
```
import {Pipe} from "angular2/angular2";
@Pipe({...})
class MyPipe {
constructor() {
...
}
transform(v, args) {}
}
```