pierre-vigier / intlpnionic Goto Github PK
View Code? Open in Web Editor NEWSimple version of intl-phone number input for Ionic
License: MIT License
Simple version of intl-phone number input for Ionic
License: MIT License
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;
}
);
},
http://play.ionic.io/app/6d0a3832cc50
Above is link of demo you have provided.
When i click outside of textbox, my selected country code get disappeared. Any solution for this?
I think the field should only allow numeric characters. This is possible.
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
Does it support preferredCountries?
Thanks.
national-mode attribute set to false is considered as true, value is passed as a string instead of being passed as an expression
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)
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
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);
}
);
});
}
}
})
When pressing the field to fill in a number, it returns +undefined
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?
In Brazil there are phones with up to 9 digits. Is it possible to include this in the validation of the number?
Tnx
I would like to know how can we make the country Code uneditable in field, after selecting the country.
@pierre-vigier any update to ionic 2 for your library ?
Very nice. Congrats for your job.
Any chance to update the libphonenumber ?
Tks
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
as the title says...
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?
On Docs item 4...load directives.
The attribute placeholder is missapeling
Is there a way to do this?
Cant find it in a code...
edit:
I just noticed this, I'll test it out
https://github.com/pierre-vigier/intlpnIonic/releases/tag/0.1.9
Your readme.md suggests that we install 0.1.8. through bower
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
It would be a great addition to have a provider (like the one in this repo https://github.com/hodgepodgers/ng-intl-tel-input) so we can specify for instance onlyCountry and utilsScript (to load it async like the original library).
Thanks. Great plugin!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.