我对 ng-include 有问题,这段代码不起作用,我找不到错误在哪里
<select name="select" id="select" class='input-large' ng-model="selectedbien">
<option value='dz'>dz</option>
<option value='fr'>fr</option>
</select>
和<section ng-include src="partial/selectedbien.html"></section>
请帮忙找出问题:)
最佳答案
应该是
<section ng-include="'partial/selectedbien.html'"></section>
或
<ng-include src="'partial/selectedbien.html'"></ng-include>
不要忘记 URL 周围的引号 - ng-include
尝试将参数解释为 angular.js 表达式,因此您可以动态更改 URL。
关于javascript - ng-include 不包含局部 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21454552/