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

phoneUtils in my App's controller #33

Open
shailu26 opened this issue Jun 28, 2018 · 1 comment
Open

phoneUtils in my App's controller #33

shailu26 opened this issue Jun 28, 2018 · 1 comment

Comments

@shailu26
Copy link

i am using your module, so when i enter phone number it formatsAsTyped in my model but i need to use formatE164 when i click the add button in my controller, i don't want to touch your module but i need to use phoneUtils.formatE164 in my controller, how can i achieve this?

@shailu26
Copy link
Author

oh i got it, so phoneUtils was global variable so it was attached in $window so i can access phoneUtils from anywhere like $window.phoneUtils.formatE164. 💯 👍
you can close this issue

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

1 participant