angular-dragdrop/angular-dragdrop

ui-on-drop doesn't work with ngRepeat

Closed this issue · 5 comments

If the ui-on-drop is attached to an item within an ngRepeat, it doesn't do anything.

+1 same issue.

Can you provide an example ( create a jsfiddle or plunk and attach it to the issue please )

If I grab the plunk from the site http://angular-dragdrop.github.io/angular-dragdrop/examples/, then it works (moving the ngDrop inside the list item). But if I try this in my own project, it doesn't.

I see that the plunk is using some (old?) library:
module "ngDragDrop" (plunk)
instead of "ang-drag-drop" (http://angular-dragdrop.github.io/angular-dragdrop/getting-started/)

The problem exist only when a use it on my testenvironment and webserver host is something like http://localhost/...
Maybe is a cross-origin XHR problem, so is a non problem...
Tks

Problem was that the function that I passed for ui-on-drop was not in the scope. Maybe an error message if the function is not found would be helpful.