With pipes like
<input....
[ngModel]="whatever | myCurrencyPipe"
(ngModelChange)="whatever = $event"
type="text"
name="myCurreny"
...
You can format the existing value. You rarely want to rewrite the meaning; you have problems. And with the solution above, double binding is canceled.
There are many jQuery-Libraries , but I am looking for my own angular2 solutions.
Can someone help me?
source
share