具有国家代码和国旗的角度国际电话号码

问题描述:

在我的角度应用程序中,我试图通过国家国旗和验证实施国际电话号码字段。 同来同这样具有国家代码和国旗的角度国际电话号码

https://github.com/hodgepodgers/ng-intl-tel-input 及其演示站点 http://hodgepodgers.github.io/ng-intl-tel-input/

很多搜​​索没有得到对角任何事情之后。

+1

你到底想要什么?阐述! – Aravind

+0

有这个,但它不会帮助你的旗帜:https://www.npmjs.com/package/ng2-tel-input – 2017-06-04 07:38:11

+0

你可以使用这个jquery以及https://github.com/jackocnr/intl-tel-input –

现在没有开箱即用的解决方案。所以你可以尝试用指令来包装jQuery解决方案并在整个项目中使用它。这里是NPM module link

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

我开始为此创建库,但尚未完成。您可以贡献给我的存储库。无论如何,组件的基本概念已经完成并做出任何更改。

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

+0

Wowwww ..谢谢blackiii,不错的start.yea基本准备就绪。我会尽力为之贡献。 – Manu

+0

不断更新我,取得任何进展。 – Manu

Gihub

我在我的项目使用这个库,将有助于和International Telephone Input。这对你也很有帮助。

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 
+1

好的,这是为java,但我只为Angular寻找客户端,就像它可用于AngularJS - https://github.com/hodgepodgers/ng-intl-tel-input – Manu