title: AngularJs Geolocation
body: <p>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. </p>
  
  <p>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.</p>
  
  <p>When I run the problem now I get locationwatch.postion is undefined because the above has not yet taken place.</p>
  
  <p>Can anyone give me any sample code or guidance on how to solve this problem?</p>