international-phone-number
international-phone-number copied to clipboard
country: two-way binding
First commit will update country in controller with intlTelInput current country iso-2 code (on flag select or when user type number) Second commit is to update intlTelInput to latest 6.4.3(it uses cookies to reduce api-calls to geoIP DB)
when
ipnConfig.defaultCountry = 'auto';
I have to add
ipnConfig.geoIpLookup= function (callback) {
$.get('http://ipinfo.io', function () {
}, "jsonp").always(function (resp) {
var countryCode = (resp && resp.country) ? resp.country : "";
callback(countryCode);
});
};
may be we can add this as default and with angular $http ?
I'll take a look at it, thanks