- npm install -g ionic@beta
- npm install -g cordova
- For iOS: http://ionicframework.com/docs/v2/resources/what-is/#xcode
- ionic start myAngularCampIonic2app --v2
- cd myAngularCampIonic2app
ionic platform add android ionic platform add ios
Develop
- ionic serve
Test on device
- ionic run android
- ionic emulate ios
- (npm install ios-sim -g)
- ionic plugin add cordova-plugin-x-socialsharing
- See: http://ionicframework.com/docs/v2/native/social-sharing/
- import {SocialSharing} from 'ionic-native';
- ionic plugin add cordova-plugin-camera
- See: https://github.com/apache/cordova-plugin-camera
- import {Camera} from 'ionic-native';
- ionic plugin add phonegap-plugin-barcodescanner
- See: https://github.com/phonegap/phonegap-plugin-barcodescanner
- import {BarcodeScanner} from 'ionic-native';