marceljuenemann / angular-drag-and-drop-lists

Angular directives for sorting nested lists using the HTML5 Drag & Drop API
MIT License
2.16k stars 713 forks source link

allow use of track by in ngRepeat #371

Closed mallowigi closed 7 years ago

mallowigi commented 7 years ago

Allow using track by in repeat expressions

marceljuenemann commented 7 years ago

Thanks for the PR! I think it looks a bit hacky though to be honest, there are lots of assumptions being made.

I'm pretty sure you can achieve this with dnd-drop and the new custom dnd-callback. Here is an example of a move by reference: https://jsfiddle.net/Ldxffyod/1/