nikhiln / ngx-international-phone-number

A simple international telephone number input for Angular
MIT License
42 stars 79 forks source link

Get more info from the object #9

Open cdelgadob opened 6 years ago

cdelgadob commented 6 years ago

It would be great if we could get more info on the form, like country info (country code, iso value, name...)

Apart from that, great work!

nikhiln commented 6 years ago

Ok, let me see if I can extract that.

tibinvpaul commented 5 years ago

Hey @nikhiln - have you got a chance to look into this? Our API expects country code and phone number separately. If I get the code from onCountryCodeChanged event, I can extract the mobile number from the input field. Currently, onCountryCodeChanged emits a string and if we change it to an object, that will be a breaking change.