Angular input mask for filtering inputs to a currency format
npm install easy-currency!Version !Downloads !BundleSize
EasyCurrency is an independend Angular input mask for filtering the input in any input field. The directive does not use the ControlValueAccessor class, so it can be used on custom input field (e.g. the matInput from angular-material).
Install the npm package
```
$ npm install easy-currencyEasyCurrencyModule
Add the to the app module`ts
...
import { EasyCurrencyModule } from 'easy-currency';
@NgModule({
declarations: [
AppComponent
],
imports: [
...,
EasyCurrencyModule,
],
bootstrap: [AppComponent]
})
export class AppModule { }
`easyCurrencyMask
Use the -Directive on any ControlValueAccessor you want `html
`€ 12,31
The value properties takes a number that represents the amount of cent of the actual value. So has the value 1231.

---
Note1: The disadvantage of this approach is that the input format is updated only after the key is released.
Note2: At the moment the only currency format is the general European Euro format (€ 11.232,00`). Format configurations will follow shortly.