/api
/pipes

Pipes API Reference

Pipe Interface

interface PipeInterface {
  transform(value: any, metadata?: any): any;
}

Example

@Pipe()
export class MyPipe implements PipeInterface {
  transform(value: any): any {
    return value.trim();
  }
}

Next Steps