码迷,mamicode.com
首页 > 移动开发 > 详细

AngularJS之移动开发

时间:2015-11-11 13:15:42      阅读:251      评论:0      收藏:0      [点我收藏+]

标签:

一、开发框架

 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之移动开发

标签:

原文地址:http://www.cnblogs.com/HuiLove/p/4955677.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!