cesarrew / ng2-currency-mask

A very simple currency mask directive that allows using a number attribute with the ngModel.
MIT License
235 stars 116 forks source link

Can't bind to 'options' since it isn't a known property of 'input' #147

Closed bressanelle closed 2 years ago

bressanelle commented 4 years ago

just following documentation (not globally example)

EpicVoyage commented 4 years ago

Did you add NgxCurrencyModule to your Angular module imports?

gleisonkz commented 3 years ago

same problem here using V12, and I already import the CurrencyModule

cesarrew commented 2 years ago

Hello. I suggest you check the following example that uses the library with reactive forms and template driven as well.

https://github.com/cesarrew/ng2-currency-mask/tree/master/projects/library-test.

cesarrew commented 2 years ago

Another option: https://stackblitz.com/edit/angular-ivy-bpn8by

AleffBruno commented 9 months ago

1. image

2. image

3. <input matInput [(ngModel)]="value" (keyup)="parcelIonChange($event)" currencyMask [options]="{ prefix: '', thousands: '.', decimal: ',' }">

I just follow the steps that 'cesarrew' ( the guy above ) post