Combining AngularJS and PhoneGap

  1. Create your PhoneGap project
  2. Download AngularJS, and save it somewhere accessible by the www\index.html page (e.g. in the www\js folder)
  3. Add a reference to the new file to the www\index.html page.
  4. Add your AngularJS code
  5. Your AngularJS app needs to be bootstrapped on deviceready. One way to do this is to add a function to call angular.bootstrap(document, ['appName']), and attach an event listener to the document to call the function on deviceready.

References
The Definitive Guide to Angular on Mobile

Advertisements

About Jennifer Phillips Campbell

Software Developer and Medieval Historian
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s