0.0.10 • Published 9 years ago
ng2-numeric-input v0.0.10
ng2-numeric-input
With this component you can type in normal numbers but display them with thousand separators or add easily a currency..
Use it like this:
<ng2-numeric-input
   decimal-character=","
   thousand-character="."
   decimal-length="3"
   currency="€"
   [(ngModel)]="myNumber"
   >
</ng2-numeric-input>You can also change the default characters via global variables:
NumericInputComponent.DECIMAL_CHARACTER = '.';
NumericInputComponent.THOUSAND_CHARACTER = ',';