pierre-vigier / intlpnIonic

Simple version of intl-phone number input for Ionic
MIT License
23 stars 23 forks source link

ng-model value not available #18

Closed Djokx closed 7 years ago

Djokx commented 7 years ago

Hi, Thank you for your module but I've some issues for getting the value of the input.

Even on your example, http://play.ionic.io/app/6d0a3832cc50 nothing appears in front of Phone number entered for me. I noticed that the ng-model of the input is always "phone", is that normal ?

Well, I need to get the value of the input in my controller but I can't ? Is that an issue or I'm just doing it wrong ?

Thanks

pierre-vigier commented 7 years ago

The value will appear only once you have a valid phone number, there's a validation before. For instance, in the example, on the top one, if you enter: +33412341234 you will the the phone number, however, if you have one digit less, it will not work