Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
PhoneGap 4 Mobile Application Development Cookbook

You're reading from   PhoneGap 4 Mobile Application Development Cookbook Build real-world hybrid mobile applications using the robust PhoneGap development platform

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781783287949
Length 356 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (14) Chapters Close

Preface 1. Welcome to PhoneGap 3 2. Movement and Location – Using the Accelerometer and Geolocation Sensors FREE CHAPTER 3. Filesystems, Storage, and Local Databases 4. Working with Audio, Images, and Video 5. Working with Your Contacts List 6. Hooking into Native Events 7. Working with XUI 8. Working with the Ionic Framework 9. Ionic Framework Development 10. User Interface Development 11. Extending PhoneGap with Plugins 12. Development Tools and Testing Index

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 from the GitHub repository by visiting https://github.com/driftyco/ng-cordova/archive/master.zip.

  2. Then unzip the newly downloaded file; so you have the following files:

  3. The file you need is dist/ng-cordova.js or dist/ng-cordova.min.js. The .min...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image