Angularjs 正在添加角度TrngGrid额外列
我正在使用trnggrid和angular以网格格式显示数据。下面是我的代码Angularjs 正在添加角度TrngGrid额外列,angularjs,asp.net-mvc-4,Angularjs,Asp.net Mvc 4,我正在使用trnggrid和angular以网格格式显示数据。下面是我的代码 <div class="row-fluid"> <table tr-ng-grid="" items="products" page-items="5" class="table table-condensed table-hover"> <thead> <tr> <th field-n
<div class="row-fluid">
<table tr-ng-grid="" items="products" page-items="5" class="table table-condensed table-hover">
<thead>
<tr>
<th field-name="Id" display-name="Id" enable-filtering="true" enable-sorting="true" cell-width="10em" display-align="right">
</th>
<th field-name="Name" display-name="Name" enable-filtering="true" enable-sorting="true" cell-width="10em" display-align="right">
</th>
<th field-name="Unit" display-name="Unit" enable-filtering="true" enable-sorting="true" cell-width="10em" display-align="right">
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="product in products">
<td>{{product.Id}}</td>
<td>{{product.Name}}</td>
<td>{{product.Unit}}</td>
<td>
<a ng-click="viewProduct(gridDisplayItem.Id)">View |</a>
<a ng-click="editProduct(gridDisplayItem.Id)"> Edit |</a>
<a ng-click="deleteProduct(gridDisplayItem.Id)">Delete</a>
</td>
</tr>
</tbody>
</table>
</div>
{{product.Id}
{{product.Name}
{{product.Unit}
有人能提出解决这个问题的办法吗。提前谢谢 删除tbody中的ng repeat指令,并删除前3个不需要的指令,因为table指令已经为您处理了这3个指令
看法|
编辑|
删除