【发布时间】:2018-09-06 08:28:30
【问题描述】:
我想问一下您是否有任何想法如何在 Angular 中传递多个管道?
目前,我的代码只通过一个管道。
const customPipe1 = new CustomPipe2();
const customPipe2 = new CustomPipe2();
<ngx-datatable-column
[width]="width"
[name]="cname"
[prop]="cbindProperty"
[pipe]="customPipe1">
</ngx-datatable-column>
我想在该列中添加两个或多个管道。 像这样的普通html。
{{ birthday | customPipe1 | customPipe2 }}
【问题讨论】:
标签: javascript angular pipe ngx-datatable