mareczek/international-phone-number

Cannot display valid phone number in input from angular model

Opened this issue · 1 comments

Step to reproduce:

  • Pass '+380989067571' as model value

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_

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.