angular-dragdrop
angular-dragdrop copied to clipboard
How can i get the coordinates of div while dragging
I need to get the x,y coordinates of dragged item. please help
use the 'onDrag' event (you can send an id of your element to it), for example:
on html:
'onDrag: ctrl.myFunc(my_elem_id)'
inside your code/controller:
myFunc = function(event, ui, id){
console.log(id)
}