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.
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.
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
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