Angular international phone number with country code and flag [closed]

て烟熏妆下的殇ゞ 提交于 2019-12-03 11:33:19

问题


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.


回答1:


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




回答2:


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



回答3:


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.



来源:https://stackoverflow.com/questions/44288535/angular-international-phone-number-with-country-code-and-flag

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!