Angular international phone number with country co

2019-03-18 05:30发布

In My Angular application I am trying to implement international phone number field with Country flag and validation. Same to Same like this

https://github.com/hodgepodgers/ng-intl-tel-input and its demo site http://hodgepodgers.github.io/ng-intl-tel-input/

After lot of search not getting any thing for Angular.

3条回答
ら.Afraid
2楼-- · 2019-03-18 05:42

https://github.com/webcat12345/ngx-intl-tel-input

I started creating library for this but not finished. You can contribute to my repository. Anyway basic concept of component is already finished and make any changes.

https://www.npmjs.com/package/ngx-intl-tel-input

查看更多
\"骚年 ilove
3楼-- · 2019-03-18 05:54

There is no out of box solution right now. So you can try to wrap jQuery solution with a directive and use it across the project. Here is NPM module link.

查看更多
我想做一个坏孩纸
4楼-- · 2019-03-18 06:01

Gihub

I'm using this library in my project it will help and International Telephone Input. This is also very helpful to you.

 Features:-
   1.Automatically select the user's current country using an IP lookup
   2.Automatically set the input placeholder to an example number for the selected country
   3.Navigate the country dropdown by typing a country's name, or using up/down keys
   4.Handle phone number extensions
   5.The user types their national number and the plugin gives you the full 
   standardized international number
   6.Full validation, including specific error types
   Retina flag icons
   7.Lots of initialisation options for customisation, as well as public methods 
for interaction
查看更多
登录 后发表回答