international-phone-number
international-phone-number copied to clipboard
Update parser to prepend dialCode on model value
NOTE: I closed PR #75 and am re-submitting. I had originally forked to a company-owned repo which has some extra requirements that cause headaches w/r/t to pull requests. It looked like everyone was on board with these changes, and there are no merge conflicts as of now.
We are using this directive to allow users to input a telephone number, which is then saved to our database. In order for the number to re-display properly, we need to supply the prefix on subsequent page views so the directive will show the proper flag and format the number as expected.
This simple change force-includes the country prefix whenever updating the model value. This behavior could easily be made optional via a config flag.
Is there an update on this PR? We are using the modify version. Would be happy to see it in the main project.