Angular 4 - How to use currency pipe in input type

后端 未结 2 2085
庸人自扰
庸人自扰 2021-02-06 01:43

I have an HTML input:


I want to format its value and use an existi

2条回答
  •  不要未来只要你来
    2021-02-06 01:47

    Here is what worked just fine with currency pipe:

    
    

    Basically using the ngModelOptions to update on blur allows for the 0s not to be added while typing in the input field.

提交回复
热议问题