Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 1.13 KB

readme.md

File metadata and controls

41 lines (24 loc) · 1.13 KB

#Ultra basic AngularJS and Cordova boostrap example

This is a very simple example of how to load Cordova with an AngularJS app. It bootstraps Angular as usual and loads Cordova via a module.

I've also thrown in FastClick which improves perceived responsiveness in mobile apps based on web views.

Install dependencies

bower install

### If starting from scratch:

1. Install Cordova Globally

Install from NPM. (Install node.js if you don't have that)

sudo npm install -g cordova

// to update
sudo npm update -g cordova

// get version
cordova -v
2. Create a Cordova project and add iOS and Android
cordova create NgCordova com.aderowbotham.ngcordova "Angular Cordova Bootstrap"
cd NgCordova/
cordova platform add ios
cordova platform add android

// list platforms added to this project
cordova platforms ls
3. Prepare / build / run
cordova serve        // run locally w/cordova API available
cordova build ios    // alias for prepare + compile
cordova run android    // run on attached device