1
각도가있는 trnggrid를 사용하여 데이터를 표 형식으로 표시합니다. 다음은이 링크에서 스크린 샷을 넣어 내가 이것을 실행할 때, 세 가지 여분의 열이 잘못 header.Have에 추가지고 내 코드각도 TrngGrid 추가 열 추가
<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>
입니다. http://i.imgur.com/ZHoLTwW.png
누군가가이 문제에 대한 해결책을 제안 할 수 있습니까? 미리 감사드립니다 !!
감사 @ 폴 삭제! 정말 도움이! – Philomath