Skip to content

aderowbotham/angular-cordova-bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

About

Very simple example of loading Cordova with an AngularJS app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published