An input mask to be used with Angular, which is mainly useful for currency input ( you can the precision for decimal number ( 1 or 2) , decimal separator ( dot or comma ) thousand seperator ( space or comma )
npm install ngx-currency-input-maskThis library was generated with [Angular CLI] version 8.2.14.
This is useful for currency input masking using the following properties
Precision
Decimal separator
Thousand separator
install the module
``bash`
npm i ngx-currency-input-maskUsage
import the NgxCurrencyMaskModule into app.module.ts
`bash`
import { NgxCurrencyMaskModule } from 'ngx-currency-input-mask';
`bash
{{currency}}
``
Input values : -
* precision (number) : decimal places , you can pass 1,2 etc.
* if you are passing precision 1 ,value will be 2.0
* if you are passing precision 2 ,value will be 2.00
* thousandSeparator (string) : it should be either ' ' or ',' or '.'
* decimalSeparator (string) : it should be either '.' or ','
* if you are passing decimalSeparator as '.' ,possible values of thousandSeparator are ',' and ' '
* if you are passing decimalSeparator as ',' ,possible values of thousandSeparator are '.' , ' ' and ','
* please note that below combination will not work for this module.
* decimalSeparator = '.' and thousandSeparator = '.'