ng-sortable
Version:
Angular Library for Drag and Drop, supports Sortable and Draggable.
16 lines (15 loc) • 451 B
HTML
<table id="table-container" ng-controller="TableController">
<thead>
<tr>
<th>Table demo .. (TODO: its showing some positioning errs.. )</th>
</tr>
</thead>
<tbody data-ng-model="itemsList.items" as-sortable>
<tr ng-repeat="item in itemsList.items" as-sortable-item>
<td as-sortable-item-handle>
<b>{{item.id}}</b>
<div>{{item.label}}</div>
</td>
</tr>
</tbody>
</table>