Update
this should be fixed from at least Angular4
original
Known issue with DI and classes that extend other classes
https://github.com/angular/angular/issues/8694
This sets up, you can use composition instead of inheritance:
@Pipe({
name: "bigInteger"
})
export class BigInteger implements PipeTransform {
constructor(private currencyPipe:CurrencyPipe) {}
transform(value: any): string {
return this.currencyPipe.transform(value);
}
}
source
share