我想包括一个模板,它不工作。我有麻烦,包括每一次我尝试使用它们。有什么我做错了吗?angularjs:ng-include不能在另一个视图中工作
意见结构:
https://i.stack.imgur.com/yFeYs.png
UserList.html:
<p>
UserList
</p>
<div ng-include src="'../Partials/Paging.html'"></div>
更新:
Paging : localhost/Administrator/App/Views/User/UserList.html
UserList : localhost/Administrator/App/Views/Partials/Paging.html
Index : localhost/Administrator/Index.html
哪里是你的index.html?尝试用'src =“Partials/Paging.html”' – murli2308
分页:http://localhost/Administrator/App/Views/Partials/Paging.html ----和index:http:// localhost/Administrator/Index。 html – mywindowshosting2016
请尝试我的回答中给出的路径是否正确 – Nitheesh