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

Error Handling Examples #9

Open
JerryArns opened this issue Dec 9, 2014 · 3 comments
Open

Error Handling Examples #9

JerryArns opened this issue Dec 9, 2014 · 3 comments

Comments

@JerryArns
Copy link

Hello, thanks for the great plugin. I was wondering if you add some error handling to your example. Thanks

@csrujanreddy
Copy link

Yes, even i am looking for this. Please provide some example to handle error messages. i am unable to get error message into my controller.

@csrujanreddy
Copy link

I got the solution. Here is how to handle errors

geolocation.getLocation().then(function(data){
         //success getting coordinates
         console.log(data);
     }, function(error) {
         //unable to get coordinates
         console.log(error);
     });

@guillaumew
Copy link

@csrujanreddy Thank you!

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