首先明确目录结构
config build dist static js all.min.js bundle.js style bundle.css index.html src controller ActivityCtrl.js ActivityCtrl.js service ActivityService.js ActivityService.js ActivityService.js app.js route.js view user user.html userAdd.html activity index.html
项目根目录下
mkdir -p dist config build src/{controller,service,view/{user,activity}}
完善相关src目录
-- --
- 创建入口文件app.js
cd src/ touch app.js
- 创建路由文件
touch route.js
- 创建controller和service文件夹
mkdir controllers services原文链接:https://www.f2er.com/angularjs/145548.html