-
Notifications
You must be signed in to change notification settings - Fork 329
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
Keep the mask in the model #34
Comments
Hi, I want to keep the mask too. Thanks! |
Not yet. |
I'm using the phone mask in a form and I want to send a email on submit. That's why I want to keep the mask, because I want to receive a email with the formatted phone number. |
We do not have plans to implement this behavior. An alternative for your scenario is to use the angular-br-filters to apply the mask again in the model value when its necessary. |
Thanks, this is a good alternative ;) |
@assisrafael I need to keep the mask to send it to an api, where it will be saved in a database. Do you have an alternative? Thanks :) |
Maybe you can write a transformRequest property on the configuration object passed into $http. See https://docs.angularjs.org/api/ng/service/$http for more details |
Feel free to reopen this issue if necessary. |
@moisespio @wellermiranda @pocesar I needed an input mask that can handle model values with mask, by default, and made the following solution https://github.com/awerlang/angular-easy-masks, hope it helps |
Hello folks!
Is there any way to keep the mask (with the symbols) in the model?
Thanks!
The text was updated successfully, but these errors were encountered: