Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get Country code in controller immediatly when it is seleted. #118

Open
santreddy63 opened this issue Jan 24, 2018 · 2 comments
Open

Comments

@santreddy63
Copy link

Hi,
How to get Country code in controller immediatly when it is seleted.

@dannav
Copy link

dannav commented Mar 30, 2018

Was just running into this issue. Hope this helps others!

It doesn't look like you can get access to this directive's scope from your controller, but I solved this issue by getting a reference to the element this directive is bound to and calling 'getSelectedCountryData'

i.e.

$('#phone').intlTelInput('getSelectedCountryData')

@26medias
Copy link

26medias commented May 1, 2018

Doesn't work for me.

Can you share an example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants