Open erperejildo opened 4 years ago
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 ") };
I had the second one working fine but since I added a empty dnd-drop it doesn't work: