mareczek / international-phone-number

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

Cannot display valid phone number in input from angular model #102

Open vitaly-vrublevskyy opened 8 years ago

vitaly-vrublevskyy commented 8 years ago

Step to reproduce:

Actual Result: Input is blank

Expected Result: Should be populated input with 0989067571 value and country Ukraine

More: http://plnkr.co/edit/BsBglD4Xv2IL1UxslllI?p=preview

international-phone-number_coffee_-_web_-____projects_etc_pet-projects_web_
peterquiel commented 8 years ago

Having the same problem, but the formatter is not the cause.

It works, if the input is rendered before the ng-model is stable. I guess, the element.intlTelInput('setNumber', value) is not working, when the element is not attached to the dom.