-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hard to use correctly with angular. #400
Comments
@fdeslandes-wk I've created one example on how to integrate (maybe its not the best). But would be great if you could fork my example and share yours with us: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The library is hard to use with angular, because the mask behavior is not triggered when angular set a value in an input/element with ng-model. An easy way to bypass this is giving access to a programmatic API to get the masked value without having to read or write the values in the DOM to do so.
This method can then be used in a formatter for ng-model. I added simple code for this API in the following pull request, with one associated unit test :
#399
I also added related documentation in #402
I didn't build the project, assuming you will do so on feature release if you choose to integrate my changes.
The text was updated successfully, but these errors were encountered: