title: Angular using pipe from custom one
body: <p>I would be glad to get some help importing a build-in pipe to a custom one in angular 2.</p>
  
  <p>This is my code :</p>
  
  <pre><code>@Pipe({ name: 'tablePipe' })
  
  export class TablePipe implements PipeTransform {
      constructor(private decimalPipe: DecimalPipe) {
  
      }
      transform(field: any, format: Format, formatArg: string): any {
          let formattedField: any = ''
          switch (format) {
              case 'number':
                  {
                      formattedField = this.decimalPipe.transform(field, formatArg);
                      break;
                  }
          }
          return formattedField;
      }
  }
  
  export type Format = 'date' | 'string' | 'number';
  </code></pre>
  
  <p>and this is the error i got:</p>
  
  <blockquote>
    <p>EXCEPTION: Uncaught (in promise): Error: No provider for DecimalPipe!</p>
  </blockquote>
  
  <p>When importing regular custom  pipes in components, i am using :</p>
  
  <pre><code>@Component({
    ...,
    pipes: [MyCustomPipe],
    ...
  })
  </code></pre>