在ngularJS中使用$ index in ng重复声明

时间:2014-07-25 10:42:03

标签: angularjs

我的数据在json属性中有唯一标识符,我想在ng-repeat指令中访问它。

这失败了:

<tr ng-repeat="shape in 'shapes.id_'+$index+'.objects')"></tr>

我有什么想法可以做到这一点?我想过可能正在使用函数调用

<tr ng-repeat="shape in shapes($index))"></tr>

0 个答案:

没有答案