我写了thousandsSeparatorPipe
,它与label
的工作正常,如下所示。
<ion-label fixed>{{project.contingency | thousandsSeparatorPipe}}</ion-label>
但是如何将pipe
应用于ion-input
?因为当用户在numeric
框下方输入时我需要显示千位分隔符。请帮忙吗?
<ion-input type="number" formControlName="budget" [(ngModel)]="project.budget" ></ion-input>