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

Minus appears before prefix on negative values #21

Open guillep2k opened 5 years ago

guillep2k commented 5 years ago

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

Orignal request by @mpayetta, @efraibo, @Teknyc

Hi! First of all, thanks for this module, it saved me lots of time! Here the issue: When I use a custom prefix, let's say %, when the value of the input is a negative number it puts the minus before the prefix instead of after (e.g. -%0.3 instead of %-0.3).

Thanks again!