In my setup I want to update the model once it has been dropped so I added a drop-model event
$scope.$on('bag-one.drop-model', function (el, target, source) {
// Doing stuff here //
});
This works great! However I don't want to make the entire div draggable so I added the moves option to specify a specific element within the div to initiate the drag via the demo documentation
Word to the wise: always check which version of the package you're using. Realized I was on 1.0.12, upgraded to 1.2.6 and everything works like a charm
In my setup I want to update the model once it has been dropped so I added a
drop-model
eventThis works great! However I don't want to make the entire div draggable so I added the
moves
option to specify a specific element within the div to initiate the drag via the demo documentationThis also works! However now with both snippets of code together the
drop-model
event is ignored.How can I specify the part of the div I want to make draggable and also run the
drop-model
event when the div has been dropped in its new location?