cordova setup
sudo npm install -g ionic cordova
sudo npm install -g ios-sim
Cordova.js
will be generated when you build a specific platform (i.e. cordova build android
)
ionic start cordovaApp tabs
cd cordovaApp
ionic platform add ios
ionic build ios
ionic emulate ios
Some quick tips:
- cd into your project:
$ cd cordovaApp
- Setup this project to use Sass:
ionic setup sass
- Develop in the browser with live reload:
ionic serve
- Add a platform (ios or Android):
ionic platform add ios [android]
Note: iOS development requires OS X currently. See the Android Platform Guide for full Android installation instructions:
https://cordova.apache.org/docs/en/edge/guide_platforms_android_index.md.html
* Build your app: ionic build <PLATFORM>
* Simulate your app: ionic emulate <PLATFORM>
* Run your app on a device: ionic run <PLATFORM>
* Package an app using Ionic package service: ionic package <MODE> <PLATFORM>
For more help use ionic –help or visit the Ionic docs: http://ionicframework.com/docs
+---------------------------------------------------------+
+ New Ionic Updates for February 2015
+
+ The View App just landed. Preview your apps on any device
+ http://view.ionic.io
+
+ Add ngCordova to your project for easy device API access
+ `bower install ngCordova`
+
+ Generate splash screens and icons with ionic resource
+ http://ionicframework.com/blog/automating-icons-and-splash-screens/
+
+---------------------------------------------------------+
$ ionic login
$ ionic upload
Install #
http://ngcordova.com/docs/install/
bower install ngCordova --save
before cordova.js
and after your AngularJS / Ionic file (since ngCordova
depends on AngularJS).
<script src="lib/ngCordova/dist/ng-cordova.js"></script>
<script src="cordova.js"></script>