这是我想与 ng-repeat 一起使用的对象,但它无法看到内部firstlang
属性:
$scope.school{
name : "stackoverflow",
sub :{
firstlang : "kannada"
}
}
这是我的 ng 重复:
<ul>
<li ng-repeat="index in school.sub">
first language is = {{index.firstlang}}
</li>
</ul>
期望的结果是:first language is = kannada