mareczek / international-phone-number

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

What is your thought on binding selected country to a model? #72

Open passkey1510 opened 8 years ago

passkey1510 commented 8 years ago

Some time I need to pass the country selected along with the phone number. What's your though on that? I could submit a pull request but I need to make sure that you find it would be useful. An example of the markup could be:

<input name="mobileNumber" type="text" class="form-control" international-phone-number number-type="MOBILE" ng-model="loginForm.mobile_number" country-model="loginForm.country">
geoffreyvd commented 8 years ago

+1

chiragdarji commented 8 years ago

+1

Marsovski commented 7 years ago

+1