angular-drag-and-drop-lists
angular-drag-and-drop-lists copied to clipboard
dnd-drop overwrites dnd-moved
I had the second one working fine but since I added a empty dnd-drop it doesn't work:
<ul dnd-list="list" dnd-drop="onDrop(list, item, index)">
<li ng-repeat="item in list"
dnd-draggable="item"
dnd-effect-allowed="move"
dnd-moved="list.splice($index, 1)"
ng-class="{selected: models.selected === item}"
ng-include="item.type + '.html'">
</li>
</ul>
$scope.onDrop = function(list, item, index) {
console.log("finished ")
};