export interface PipeTransform
export interface PipeTransform
exported from angular2/core defined in angular2/src/core/change_detection/pipe_transform.ts (line 1)
To create a Pipe, you must implement this interface.
Angular invokes the transform
method with the value of a binding
as the first argument, and any parameters as the second argument in list form.
Syntax
value | pipeName[:arg0[:arg1...]]
Example (live demo)
The RepeatPipe
below repeats the value as many times as indicated by the first argument:
Invoking {{ 'ok' | repeat:3 }}
in a template produces okokok
.
Members
transform(value: any, args: any[]) : any
transform(value: any, args: any[]) : any
Not Yet Documented