新建项目
$ ionic start TongeNews
Creating Ionic app in folder C:\Users\Tonge\Source\Repos\TongeApp based on tabs project
Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
[=============================]  %  .0s
Downloading: https://github.com/driftyco/ionic-starter-tabs/archive/master.zip
[=============================]  %  .0s
Updated the hooks directory to have execute permissions
Update Config.xml
Initializing cordova project

等待Initializing完成就行了。

架构架构

配置完路由、视图、和控制器部分,项目初始架构图就已经出来了,如下图

[ionic开源项目教程] - 第2讲 新建项目,配置app.js和controllers.js搭建基础视图-LMLPHP

下一节讲解services层,从服务器获取数据,通过controller层传给view视图层。

04-06 02:49
查看更多