[英]AngularJS - MVC ASP.NET Directory Structure
This is more of a general inquiry. 这更多的是一般性的询问。 I am looking to start a personal website as a side project using ASP.NET MVC 5/WebAPI.
我希望使用ASP.NET MVC 5 / WebAPI作为个人项目来启动个人网站。 For my front end (Javascript) I want to use AngularJS.
对于我的前端(Javascript),我想使用AngularJS。 I have been reading tons of articles and they all suggested the best way to structure your files is to put the html, service/controller all together in the same folder.
我一直在阅读大量的文章,他们都建议构建文件的最佳方法是将html,服务/控制器放到同一文件夹中。 I am not sure if this is best practice for ASP.NET MVC.
我不确定这是否是ASP.NET MVC的最佳做法。
What are some things that you guys can recommend to achieve clean and reusable code. 你们可以推荐哪些东西来获得干净且可重用的代码。
Thanks 谢谢
This example shows how to create a simply web application using angularjs, mvc and RESTful Web Service, I named it is “manage customer”. 这个例子展示了如何使用angularjs,mvc和RESTful Web Service创建一个简单的Web应用程序,我将其命名为“ manage客户”。 List of features:
功能列表:
List of projects of “manage customer” application: “管理客户”应用程序的项目清单:
Here is solution structure: 这是解决方案结构:
More detail and source here AngularJs MVC AngularJs MVC的更多详细信息和源代码
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.