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

[dropSpecialCharacters]="true" #18

Open guillep2k opened 5 years ago

guillep2k commented 5 years ago

There's an issue in the original project about this problem, and there are instructions to deal with it. They could be implemented in this fork.

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

Orignal request by @ErickXavier, @michellehorn

Is it possible to have an option so the model has no special Characters?

Something like: [dropSpecialCharacters]="true"

Example: when you see R$ 199.999,10 the model itself is 19999910.

Response from @ErickXavier

I added the support, just waiting on the merge: (https://github.com/cesarrew/ng2-currency-mask/pull/104)

ErickXavier commented 5 years ago

Added a pull-request: https://github.com/christopheelkhoury/ng2-currency-mask/pull/24