international-phone-number icon indicating copy to clipboard operation
international-phone-number copied to clipboard

country: two-way binding

Open Zaitsev opened this issue 9 years ago • 1 comments

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 ?

Zaitsev avatar Nov 25 '15 20:11 Zaitsev

I'll take a look at it, thanks

mareczek avatar Dec 15 '15 09:12 mareczek