【发布时间】:2016-08-28 13:32:32
【问题描述】:
我正在使用 Angular1.5 和 asp.net mvc。
默认情况下,当我的应用程序加载时它指向http://domainname/components/Webui/Home/Instructions
首页 - 控制器, 说明 - 操作
public class HomeController : Controller
{
public ActionResult Instructions()
{
return View();
}
}
上面的url返回一个html
其中包含以下内容
<div>
<div ng-include src="app/Layout/shell/Shell.html" class="height100">
</div>
</div>
但它无法下载 shell.html。 它正在生成错误的网址,如下所示
http://domainname/components/Webui/Home/app/layout/shell/Shell.html
在上面的 url 为什么 Home 来了?
我的文件夹结构是
app
layout
shell
Shell.html
Controllers
Views
Home
Index.cshtml
Instructions.cshtm
如有错误请指正。
【问题讨论】:
标签: angularjs asp.net-mvc angularjs-ng-include