Access to moved, added, or removed item
joelcoxokc opened this issue · comments
Joel Cox commented
Hello I am trying to figure out how to get access to the data of the item that was added or removed.
The onAdd
& onRemove
methods are invoked with the SortableEvent
which only gives me access to the raw HTML elements.
In Angular we don't really care about the raw HTML element, but rather the data item in the array.
In my scenario... When I add an item or remove an item, I need to make a server request against that item.. however, I do not have a way to get access to the item from the SortableEvent
.
Is this something we can add to the SortableEvent?