Is there a way to set the callback function using angular ui sortable? I would like to add ng-update = "foo ()" to the tbody tag below and run foo each time the list changes.
<tbody id="existingStockResults" ui-sortable ng-model="processes"> <tr ng-repeat="process in processes" ng-class="{odd: $index%2 == 0, even: $index%2 != 0}"> <td>{{process.process}}</td> <td>{{process.vendor}}</td> <td>{{process.desc}}</td> <td>{{process.cost}}</td> <td><a href="#" ng-click="editProcess($index)">edit</a></td> <td><a href="#" ng-click="removeProcess($index)">remove</a></td> </tr> </tbody>
thanks!
javascript angularjs angular-ui angular-ui-sortable
kreek
source share