对于表行的angular ui-sortable,在$ index中有变化。
<table>
<tbody ui:sortable ng:model="product">
<tr ng-repeat="data in product">
<td>{{$index}}</td>
<td>{{data.name}}</td>
</td>
</tbody>
</tbody>
js file:
$scope.product=[{name:'tomato'},{name:'tomato1'},{name:'tomato2'},{name:'tomato3'}];