假设我有非常大的单元格网格,我想添加数据行和数据集合值,并从模型绑定.如何从angular2(Dart中的beta0)绑定数据行.
与data-row="{{bonVal}}"的绑定似乎不起作用. (输出html中没有数据属性)
例如.
<table>
<tr *ngFor="#row of rows" >
<td *ngFor="#cell of row.cells" data-row="{{row.index}}" data-col="{{cell.index}}" >
</td>
</tr>
</table>