標籤:
一、開發架構
Ionic 架構:基於HTML5,CSS3 官網:http://www.ionic.wang;
cordova :打包工具,打包跨平台的APP程式,提供跨平台的API庫 plugins.cordova.io
ngcordova:AngularJS中的操作cordova庫 網站:ngcordova.com/docs/plugins/
二、平台安裝
1、安裝ionic npm install -g cordova ionic
三、建立架構
ionic start myapp tabs //建立tab類型的架構
* cd into your project: $ cd myapp
* 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 ionic docs
AngularJS之移動開發