Angular (legacy) directive for SortableJS.
npm install angular-legacy-sortablejsangular-legacy-sortable
-----------------------
Demo: http://jsbin.com/naduvo/1/edit?html,js,output
`` html`
`js``
angular.module('myApp', ['ng-sortable'])
.controller('demo', ['$scope', function ($scope) {
$scope.items = ['item 1', 'item 2'];
$scope.foo = ['foo 1', '..'];
$scope.bar = ['bar 1', '..'];
$scope.barConfig = {
group: 'foobar',
animation: 150,
onSort: function (/* ngSortEvent /evt){
// @see angular-legacy-sortable.js#L18-L24
}
};
}]);