Hi,
I am trying to build an app that gets the users current location, then queries an api services that then returns data based upon the users position. The two problems I am facing, is that when the app is first initialized it asked the user to grant permission to use locationwatch this takes around 10 – 30 seconds the find there location but I have a controller function that needs to run after this is complete in order to fire off the http get request for the data. When I run the problem now I get locationwatch.postion is undefined because the above has not yet taken place. Can anyone give me any sample code or guidance on how to solve this problem? -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
