title: Angular 2 dependency injection in pipes
body: <p>How can i inject dependencies like a service into angular2 pipes?</p>
  
  <pre><code>import {Pipe, PipeTransform} from 'angular2/core';
  import {MyService} from './service';
  
  //How i am injecting MyService to the pipe?
  
  @Pipe({name: 'exponentialStrength'})
  export class ExponentialStrengthPipe implements PipeTransform {
    transform(value:number, args:string[]) : any {
      return Math.pow(value, parseInt(args[0] || '1', 10));
    }
  }
  </code></pre>