【发布时间】:2017-03-24 18:54:57
【问题描述】:
我正在尝试为 ng-repeat-start 和 ng-repeat-end 使用 2 个不同的对象。
例如:
<tr ng-repeat-start="file in files">
<td class="name-col">{{file.name}}<br>
</td>
<td class="name-col">{{file.progress}}</td>
</tr>
<tr ng-repeat-end="otherFile in otherFiles">
<td colspan="2">
{{otherFile.errors}}
</td>
</tr>
现在似乎不起作用,它只假设第一个对象(文件)
【问题讨论】:
标签: javascript angularjs loops angularjs-ng-repeat