zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    go语言——strings和strconv
    go语言——map
    Manjaro配置
    go语言——数组和切片
    go语言——随机数
    go——选择和循环
    go语言——输入输出
    java动态代理实现--基于子类的动态代理
    java动态代理实现--基于接口的动态代理
    spring依赖注入
  • 原文地址:https://www.cnblogs.com/zhangpengc/p/5011846.html
Copyright © 2011-2022 走看看