Giter Club home page Giter Club logo

intlpnionic's People

Contributors

melonmanchan avatar pierre-vigier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

intlpnionic's Issues

Select country, input.focus fail.

Focus fail... i do this.

selectCountry: function(country) {
scope.isocode = country.iso2;
scope._updateDialCode(country.dialCode);
scope.modal.hide();
$timeout(
function() {
var input = element[0].querySelector('input');
input.focus();
var tmpStr = input.value;
input.value = '';
input.value = tmpStr;
}
);
},

Allow Only Numbers

I think the field should only allow numeric characters. This is possible.

Doesn't Accept a number

It doesnt accept this type of number:

8168012687, In india , a new telecom company was launched having numbers like this. It wont accept this type of number and shows as undefined

TypeError: intlTelInputUtils.formatNumberByType is not a function

console error
ionic.bundle.js:20306 TypeError: intlTelInputUtils.formatNumberByType is not a function
at NgModelController.ngModelCtrl.$render (intlpnIonic.js:296)
at Object.ngModelWatch (ionic.bundle.js:31992)
at Scope.$digest (ionic.bundle.js:22934)
at Scope.$apply (ionic.bundle.js:23205)
at bootstrapApply (ionic.bundle.js:10147)
at Object.invoke (ionic.bundle.js:12884)
at doBootstrap (ionic.bundle.js:10145)
at bootstrap (ionic.bundle.js:10165)
at angularInit (ionic.bundle.js:10059)
at HTMLDocument. (ionic.bundle.js:34824)

get country code

Hi Pierre,

great work on this plugin! Is there any way to obtain the selected country code? E.g. if France is selected I'd like to have some way to access only the "+33" part of the full number.

Cheers
Ben

Input bind focus setSelection fail...

On focus the set selection fail. and i do this.

input.bind('focus', function() {
if (scope.national) {} else {
if (!scope.phone) {
scope.$apply(function() {
scope.phone = scope.dialCode;
$timeout(
function() {
input[0].setSelectionRange(scope.dialCode.length + 1, scope.dialCode.length + 1);
}
);
});
}
}
})

unable to integrate

Error: [$compile:multidir] Multiple directives [input (module: thebigday), intlpnFormatter (module: intlpnIonic)] asking for new/isolated scope on:

Received above error, anyone got idea what's wrong?

9 digits in Brazil

In Brazil there are phones with up to 9 digits. Is it possible to include this in the validation of the number?

Tnx

Uneditable Country Code

I would like to know how can we make the country Code uneditable in field, after selecting the country.

Updating

Very nice. Congrats for your job.
Any chance to update the libphonenumber ?
Tks

Suport for Ionic 2.0

Hi there,
I have been using this plugin and so far so good, now I'm using Ionic 2.0 but it doesn't work with this new version, is this something you are working on?
Thanks

How can I do mobile number validation?

Hi all,
How could I do validation while using this plugin, please help to do it..thanks in advance!
ps:
I read the documentation it's says ng-model will be updated only on entering valid number..
so can how can I use ng-messages to show appropriate message for this?

Docs fail.

On Docs item 4...load directives.

The attribute placeholder is missapeling

ng-model value not available

Hi,
Thank you for your module but I've some issues for getting the value of the input.

Even on your example, http://play.ionic.io/app/6d0a3832cc50 nothing appears in front of Phone number entered for me. I noticed that the ng-model of the input is always "phone", is that normal ?

Well, I need to get the value of the input in my controller but I can't ? Is that an issue or I'm just doing it wrong ?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.