• AngularJS Best Practices: ASP.NET MVC Directory Structure


    /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-view.tpl.html
    -------------------- app.users.js
    ---------- app.js
    /Views
    ----- /Home
    ---------- Index.cshtml
    ----- /Shared
    ---------- _Layout.cshtml
    ----- _ViewStart.cshtml

  • 相关阅读:
    苹果手机的SB系列(9)移动版的AAP个个都比桌面版大?
    初识Redis(四)
    初识Redis(三)
    初识Redis(二)
    初识Redis(一)
    Codeforces Round #589 (Div. 2)
    康拓展开学习笔记
    最短路模板
    K
    D
  • 原文地址:https://www.cnblogs.com/zhangpengc/p/5011846.html
Copyright © 2020-2023  润新知