|
学习ionic
安装ionic/Install Ionic 首先您需要安装 Node.js. 其次, 安装最新版本的cordova 和 ionic command-line tools. 通过参考Android 和 iOS 官方文档来安装.
npm install -g cordova ionic
通过Ionic创建一个项目使用Ionic官方提供的现成的应用程序模板,或一个空白的项目创建一个Ionic应用。( Create an Ionic project using one of our ready-made app templates, or a blank one to start fresh.)
ionic start myApp tabs
$ ionic start myApp blank
$ ionic start myApp tabs
$ ionic start myApp sidemenu
运行我们刚才创建的Ionic项目 使用Ionic tool 创建 ,测试,运行你的apps(或者通过Cordova直接创建),如果要创建android应用,把右侧创建代码中的ios改为android ( Use the Ionic tool to build, test, and run your apps (or use Cordova directly). Make sure to substitute ios with android to build for Android.)
Then, try Ionic View to share your apps with testers and clients, or to easily test on new devices.
$ cd myApp
$ ionic platform add ios$ ionic build ios$ ionic emulate ios
http://www.ionic.wang/start-index.html
学习ionic
|
|