FCSAmerica / angular-fcsa-number

An Angular directive that validates numbers and adds commas as thousand separators.
Apache License 2.0
83 stars 58 forks source link

How to disable separator #32

Open donnygunawan93 opened 8 years ago

donnygunawan93 commented 8 years ago

Hello buddy ^_^, I want to use this library for validate PIN, so I don't need separator, how to disable?

Shawful commented 8 years ago

agree. upvote. I am attempting a similar angular validation on a credit card and the commas make me sad :(

Shawful commented 8 years ago

I fixed it by adding a few minor lines of code (linked below) and adding fcsa-number="{noSeparator: true}" to my markup

fcsa now has the ability to remove commas from result (for credit card numbers) https://github.com/Shawful/angular-fcsa-number/commit/3b6177dbd62e87265ab972dae012e0b92dd284c0