I need a thousand separator
input mask
directive or else with Ionic 3
app. I have tried 2 directives. But none of them were working. Do you know working directive for that?
e.g. 50,000
.html
<ion-input type="tel" [ngModel]="data?.budget" formControlName="budget" (ngModelChange)="data.budget=$event"></ion-input>
I have logged issues on Git. please see that too:
Here is my version of formatting that works on ionic too.
Typescript:
HTML:
It need some improvements in error management and currency addition (it accepts leading '$' sign). I set the regexp to accept numbers with 10 decimals.
DEMO
If you wish no decimals and only numeric input, this DEMO shows how.