O'Reilly logo

PhoneGap 4 Mobile Application Development Cookbook by Zainul Setyo Pamungkas

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

Using ngCordova

ngCordova is an AngularJS extension on top of the Cordova API. This extension makes building, testing, and deploying Angular JS–based Cordova applications easier. Since Ionic framework is built upon AngularJS, we can utilize ngCordova to get easier access to Cordova plugins' API. In this section, we are going to see how to use ngCordova along with Ionic framework. We will use the $cordovaDialogs call dialog plugin API from the Ionic application. The $cordovaDialogs plugin will display a native dialog box for each corresponding platform.

How to do it...

To get started using ngCordova, follow these steps:

  1. Start by downloading ngCordova. Go to http://ngcordova.com/ and click on the download link. Alternatively, you can download it straight ...

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