我的角度项目的路径是这样的
web
server.py ##flask server program
app
static
app.js
controllers.js
etc...
templates
index.html
home.html
索引.html
<!-- this didn't work -->
<ng-include src="templates/home.html"><ng-include>
<!-- nor did this -->
<ng-include src="home.html"></ng-include>
首页.html
<h1> home! </h1>
但我在输出中没有看到部分内容(home.html)。
有人看到我的错误吗?
ng-include 的 src 属性需要一个字符串。要么传递作用域变量,要么直接传递字符串。
<ng-include src=" 'templates/home.html' "></ng-include>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)