
p.location-badge.
  exported from <a href='../core'>angular2/core</a>
  defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.37/modules/angular2/src/core/change_detection/pipe_transform.ts#L1-L33">angular2/src/core/change_detection/pipe_transform.ts (line 1)</a>

:markdown
  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](http://plnkr.co/edit/f5oyIked9M2cKzvZNKHV?p=preview))
  
  The `RepeatPipe` below repeats the value as many times as indicated by the first argument:
  
  ```
  import {Pipe, PipeTransform} from 'angular2/angular2';
  
  @Pipe({name: 'repeat'})
  export class RepeatPipe implements PipeTransform {
    transform(value: any, args: any[] = []) {
      if (args.length == 0) {
        throw new Error('repeat pipe requires one argument');
      }
      let times: number = args[0];
      return value.repeat(times);
    }
  }
  ```
  
  Invoking `{{ 'ok' | repeat:3 }}` in a template produces `okokok`.
  
  
.l-main-section
  h2 Members
  .l-sub-section
    h3#transform transform

    
    pre.prettyprint
      code.
        transform(value: any, args: any[])
    
    :markdown




