Get attributes of target div in ngDraggable
I have two div containers that have many elements in them. I am using ngDraggable
drag and drop for these items. I need to get the attributes of a container div when an element is removed. When I check what I get is the attributes of the target item
, not the div container
. How can I get the attributes of the outer div?
Edit
<div id="containerdiv">
<div id="item" ng-repeat="(qKey, qn) in list" ng-drop="true" ng-drop-success="onDropComplete($index, $data,$event)">
</div>
ondrop function
$scope.onDropComplete = function (index, obj, evt) {
console.log(index) // returns the dragged items attributes
});
+3
source to share
No one has answered this question yet
See similar questions:
or similar: