我正在尝试使用嵌套循环来访问导师信息以及学生在HTML中为导师创建的日志
HTML:
<table ng-if="vm.log.length !== 0 && vm.checked === 1" class="table table-striped">
<thead>
<tr>
<th>Tutor First Name</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="log in vm.logs ">
<td>{{logs.tutorFirst}}</td>
<td>
<table>
<tr ng-repeat="Student in StudentLogs track by $index">
<td> {{Student.log}}</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
JSON:
[
"Tutorfirst" :"tutor"
],
[
"Tutorfirst" :"tutor"
"Student" :{
"log" : "INFO"
}
],
JSON可能不正确,但我的问题是, 如果第一个对象没有我试图循环的字段,那么ng-repeat是否会启动?