ng-sortable
ng-sortable copied to clipboard
make it to swap
I've already spent a lot of time, but anyway I couldn't make it to swap the dragged item with the item where it dropped. Now, as I drag the item, each next one items' position changes to 'current-1'.
Need get exactly as in this example: http://htmlpreview.github.io/?https://github.com/fatlinesofcode/ngDraggable/blob/master/example-reorder.html
@AlbertHambardzumyan you need this only within one bucket? i.e one sortable list.
yes, one vertical list
right now this is not supported, but this can be doable. by providing an option.
@a5hik can you give me an idea on how to achieve this? I want to swap the source and dest object index before saving.
+1