mareczek / international-phone-number

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

Error but input behaves correctly #96

Open MadaManu opened 8 years ago

MadaManu commented 8 years ago

I see the following error in the browser console when I'm using it.

TypeError: Cannot set property 'internationalPhoneNumber' of undefined
    at link (http://localhost:9009/bower_components/international-phone-number/releases/international-phone-number.js:96:53)
    at http://localhost:9009/bower_components/angular/angular.min.js:65:60
    at K (http://localhost:9009/bower_components/angular/angular.min.js:55:142)
    at g (http://localhost:9009/bower_components/angular/angular.min.js:47:397)
    at g (http://localhost:9009/bower_components/angular/angular.min.js:47:414)
    at g (http://localhost:9009/bower_components/angular/angular.min.js:47:414)
    at g (http://localhost:9009/bower_components/angular/angular.min.js:47:414)
    at K (http://localhost:9009/bower_components/angular/angular.min.js:55:83)
    at g (http://localhost:9009/bower_components/angular/angular.min.js:47:397)
    at g (http://localhost:9009/bower_components/angular/angular.min.js:47:414) <input type="text" international-phone-number="" default-country="ie" ng-model="phoneNumber" class="ng-isolate-scope ng-pristine ng-valid">

However the input behaves corectly and everything works as expected. This is the html page snippet that I use:

<input type="text" international-phone-number default-country="ie" ng-model="phoneNumber"></input>