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 and AngularJS for Cross-platform Development

You're reading from   PhoneGap and AngularJS for Cross-platform Development Build exciting cross-platform applications using PhoneGap and AngularJS

Arrow left icon
Product type Paperback
Published in Oct 2014
Publisher
ISBN-13 9781783988921
Length 122 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Yuxian E Liang Yuxian E Liang
Author Profile Icon Yuxian E Liang
Yuxian E Liang
Eugene Liang Eugene Liang
Author Profile Icon Eugene Liang
Eugene Liang
Arrow right icon
View More author details
Toc

Creating a to-do list app using AngularJS on PhoneGap

For this section, we'll start off by transferring the to-do list app from the chapter1 folder to PhoneGap. As you may have already guessed, shifting the to-do list app to a PhoneGap version simply requires the installation of cordova.js. Let's see how this is done in the next section.

A basic version of a to-do list using AngularJS on PhoneGap

Let's quickly get started by shifting the to-do list app from chapter1 to PhoneGap. Perform the following steps:

  1. Change the directory to chapter2 and navigate to www/ where your PhoneGap files are located.
  2. Change index.html to index_concepts.html.
  3. Now, copy the contents from index.html from chapter1 (where the basic HTML structure for todo app resides) to our new index.html file.
  4. Copy todo.js from todo/ in chapter1 to js/ in www/ in the chapter2 folder.

    Your directory should look like this for todo app of chapter2:

    A basic version of a to-do list using AngularJS on PhoneGap

    The code directory

  5. So, as of now, your index.html file for this chapter should...
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