0
我正在使用Angular.js和ng-repeat指令创建表格单元格。我有数组对象:使用AngularJS添加几个表格单元格
$scope.items = [{ name: 'item1', value: [{ val1: '1' }, { val2: '2' }] },
{ name: 'item2', value: [{ val1: '3' }, { val2: '4' }] ]
,这里是我的标记:
<tr ng-repeat="item in items" >
<td>{{item.name}}</td>
<td ng-repeat="another_item in item.value">{{another_item.val1 + another_item.val2}}</td>
</tr>
有人可以解释我为什么是TD第二建筑工程产生两个标签。这种结构在这种情况下如何与plus结合使用:{{another_item.val1 + another_item.val2}}
谢谢。