concept ngCordova in category ionic

This is an excerpt from Manning's book Ionic in Action: Hybrid Mobile Apps with Ionic and AngularJS.
Ionic has also sponsored the creation of a project called ngCordova at http://ngcordova.com. ngCordova is a collection of nicely integrated Cordova plugins designed to work well with Angular. Chapter 8 covers more details about Cordova and plugins, and you’ll see some examples from the ngCordova project.
Cordova plugins provide a lot of great features, but you can’t use their features like you’ve used Angular’s services. The ngCordova project was started by the Ionic community to create Angular-ized versions of Cordova’s services. While ngCordova isn’t only for Ionic, it was created with Ionic in mind. You can find the ngCordova site at http://ngcordova.com.
ngCordova supports dozens of Cordova plugins. The site can provide the most up-to-date list because more plugins are added as the community needs them. The ngCordova community welcomes contributions as well, if you’re able to add support for another plugin not listed.
The primary benefits of using ngCordova instead of the default Cordova API are as follows:
Start by getting the plugin and ngCordova set up. This should be familiar by now, but here are the steps again:
ionic plugin add org.apache.cordova.geolocation ionic add ngCordovaThis 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:
<script src="lib/ngCordova/dist/ng-cordova.js"></script>Then add the ngCordova dependency to your app: