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

ERROR #158

Closed hamidpp closed 2 years ago

hamidpp commented 3 years ago

ERROR in No suitable injection token for parameter 'elementRef' of class 'CurrencyMaskDirective'. no type or decorator

williamxsp commented 3 years ago

Do you have any sample code?

What angular version are you using?

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