示例说明
本示例完成ionic sidemenu样式项目创建
安装cordova
$ npm install -g cordova ionic
安装ionic
$ ionic start qos sidemenu qos是项目名称
$ cd dos //进入目录
$ ionic platform add ios //添加ios
$ ionic platform add android //添加android
$ionic setup sass
浏览器预览
ionic serve
安装插件
ngCordova插件
$ bower install ngCordova
app.js添加依赖
angular.module('purple.qos', ['ngCordova'])
sqlLite
cordova plugin add https://github.com/litehelpers/Cordova-sqlite-storage.git
pouchDb
bower install --save pouchdb
二维码扫描$cordovaBarcodeScanner
cordova plugin add https://github.com/phonegap/phonegap-plugin-barcodescanner.git
相机插件
cordova plugin add cordoba-plugin-camera
If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
"<preference name="AndroidPersistentFileLocation" value="Compatibility" />"
to config.xml in order for the application to find previously stored files.
录像插件
$ cordova plugin add cordova-plugin-media-capture
文件目录访问
cordova plugin add cordoba-plugin-file
文件上传下载
cordova plugin add cordova-plugin-file-transfer
安装api|打开PDF插件
cordova plugin add https://github.com/pwlin/cordova-plugin-file-opener2.git