AngularJS Best Practices: Directory Structure
2015-12-01 00:47 zhangpengc 阅读(157) 评论(0) 编辑 收藏 举报app/
----- common/ // Acts as reusable components for your app
---------- header/
--------------- controllers/
-------------------- header.controller.js
--------------- views/
-------------------- header.tpl.html
---------- sidebar/
--------------- controllers/
-------------------- sidebar.controller.js
--------------- views/
-------------------- sidebar.tpl.html
----- components/ // Each component is treated as a mini Angular app
---------- users/
--------------- controllers/
-------------------- users.controller.js
--------------- views/
-------------------- user-list.tpl.html
-------------------- user-add.tpl.html
-------------------- user-edit.tpl.html
-------------------- user-view.tpl.html
--------------- app.users.js
----- app.js
assets/
----- images/ // Images for your app
----- css/ // Styles for your app
----- libs/ // Third-party libraries such as jQuery, Moment, Underscore, etc.
index.html