PipeMetadata

export class PipeMetadata

exported from angular2/core defined in angular2/src/core/metadata/directives.ts (line 931)

Declare reusable pipe function.

A "pure" pipe is only re-evaluated when either the input or any of the arguments change.

When not specified, pipes default to being pure.

Example

@Pipe({name: 'lowercase'}) class Lowercase { transform(v, args) { return v.toLowerCase(); } }

Constructor

constructor({name, pure}: {name: string, pure?: boolean})

Not Yet Documented

Members

name : string

Not Yet Documented

pure : boolean

Not Yet Documented