international-phone-number icon indicating copy to clipboard operation
international-phone-number copied to clipboard

Update parser to prepend dialCode on model value

Open michaelmcauley opened this issue 8 years ago • 1 comments

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.

michaelmcauley avatar Apr 12 '16 16:04 michaelmcauley

Is there an update on this PR? We are using the modify version. Would be happy to see it in the main project.

rachyandco avatar Nov 12 '16 12:11 rachyandco