thelebdev / ng2-currency-mask

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

Feature request - Add support for forms #1

Open guillep2k opened 5 years ago

guillep2k commented 5 years ago

Migrated from original project (https://github.com/cesarrew/ng2-currency-mask/issues/130)

Orignal request by @codeunifier

I'm having issues using the currencyMask directive with a form control. Seems to only work with ngModel, which is great, but it would be awesome to also have support for forms.

d10n4t4n commented 3 years ago

You can use ngModel inside a reactive forms, just use the [ngModelOptions]="{ standalone: true }" option. But if you want your mask to be a control, I guess it will be easier and faster to just fork the lib and add that feature yourself.