I’m using angular google map directive at a state.
If set manual coords i get this to work perfectly.
The problem is that i want to show the user’s location.
I’m trying to set the geolocation but i it doesn’t work.
I do get the coords but i get it too late and i get a JS error.
I copied the factory from http://codepen.io/ionic/pen/uzngt and used it.
Still the same thing…
If i just printing the coords on the html it works, but not when i use the it doesn’t work.
Here is my controller
If someone can help me i would really appreciate it