首页 > Web开发 > 详细

AngularJS Best Practices: ASP.NET MVC Directory Structure

时间:2015-12-02 06:40:02      阅读:231      评论:0      收藏:0      [点我收藏+]

/Content
----- images/ // Images for your app
----- css/ // Styles for your app
/Scripts
----- libs/ // Third-party libraries such as jQuery, Moment, Underscore, etc.
----- 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-form.tpl.html
------------------------- user-view.tpl.html
-------------------- app.users.js
---------- app.js
/Views
----- /Home
---------- Index.cshtml
----- /Shared
---------- _Layout.cshtml
----- _ViewStart.cshtml

AngularJS Best Practices: ASP.NET MVC Directory Structure

原文:http://www.cnblogs.com/zhangpengc/p/5011846.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!