I made a function that should add an item on the position I clicked inside a div. Now the problem with this function is, every time I click, it takes the x & y position
For those on angular who are using dragging libraries and want the position of the element that was dragged:
and in the controller
$scope.onDrag($event){ console.log("X ->",$event.originalEvent.pageX,"Y ->",$event.originalEvent.pageY) }