【发布时间】:2016-12-22 14:29:01
【问题描述】:
我想在我的自定义管道上调用 numberPipe 我找到了这个答案
Angular2 use basic pipe in custom pipe
但我这个解决方案对我不起作用。我有一个错误 “找不到管道‘bigInteger’”
import { Pipe, PipeTransform } from "@angular/core"
import { CurrencyPipe } from "@angular/common"
@Pipe({
name: "bigInteger"
})
export class BigInteger extends CurrencyPipe implements PipeTransform {
transform(value: any): string {
return value
}
}
【问题讨论】:
标签: angular typescript pipe