Skip to content
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

Closed
fdeslandes-wk opened this issue Mar 29, 2016 · 2 comments
Closed

Hard to use correctly with angular. #400

fdeslandes-wk opened this issue Mar 29, 2016 · 2 comments

Comments

@fdeslandes-wk
Copy link
Contributor

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.

@igorescobar
Copy link
Owner

#399

@igorescobar
Copy link
Owner

@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:
#499

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants