O'Reilly logo

Ionic : Hybrid Mobile App Development by Hoc Phan, Sani Yusuf, Rahat Khanna

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Integrating ngCordova to Ionic App

ngCordova is a JS library that acts as an Angular wrapper to all Cordova plugins. Angular has its own architectural style and hence Cordova plugins do not fit directly into an Ionic App. ngCordova makes it super easy for Ionic developers to call JS methods for Cordova plugins and process the data input.

ngCordova is available as a JS file, which can be added to your project using Bower if it is being used as a dependency management system. The bower command to install the specific ngCordova dependency into your Ionic App is as follows:

$ bower install ngCordova

The ngCordova JS file can also be directly downloaded from the GitHub website, https://github.com/driftyco/ng-cordova/. There will be two files in the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required