Is it possible to inject dependencies such as a service into Angular 2 pipes?
import {Pipe, PipeTransform} from 'angular2/core';
import {MyService} from './service';
//How can I inject MyService into 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));
}
}