concept geolocation plugin in category ionic

appears as: geolocation plugin
Ionic in Action: Hybrid Mobile Apps with Ionic and AngularJS

This is an excerpt from Manning's book Ionic in Action: Hybrid Mobile Apps with Ionic and AngularJS.

Let’s look at an example that uses the geolocation plugin to get the device location. To update Angular after Cordova is finished with some task, use the $scope.$apply() method as you see in the following listing.

This will download and install the geolocation plugin and then add ngCordova to the project. The last thing you need to do is add ngCordova to your Angular application. Add the </script> tag to the index.html file after the Ionic bundle file: