This library use for currency masking with locale in angular.
- Install npm package.
npm install currency-locale-mask
- Import CurrencyMaskModule in module.
- Below field use in HTML
- ngCurrencyMask - selector
- code - ex. 'USD', 'EUR'
- locale - ex. 'en-US', 'de-DE'
<input ngCurrencyMask code="USD" locale="en-US" formControlName="currencyEN">
<input ngCurrencyMask code="USD" locale="de-DE" formControlName="currencyDE">