mareczek / international-phone-number

AngularJS directive implementing intl-tel-input (https://github.com/Bluefieldscom/intl-tel-input)
139 stars 132 forks source link

country code & extension #70

Open dacio opened 9 years ago

dacio commented 9 years ago

sorry, not an issue, but a (hopefully quick) question... how do you separate & grab the country code from the ng-model set on the directive, especially if users use the dropdown to select their country? similarly, if enabled, how do you separate the extension?

plunkr (based on @skfd's): http://plnkr.co/edit/KacViEe1yN9Tc5UPJgks

(lmk if there's a more appropriate forum to ask these types of questions, and I'll post there instead)

vpratti commented 8 years ago

Any idea how to grab the country code. I am looking for a way to grab the country code while saving.

GaloisGirl commented 8 years ago

I couldn't figure it out, so I switched to https://github.com/hodgepodgers/ng-intl-tel-input, where the model is the full phone number.