You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.
My product has several ng-repeated lists based on objects, not arrays. There are a number of reasons why this is the case, the main one is the performance characteristics when accessing a particular object throughout the app, outside of the ng-repeat.
I've been trying to identify the appropriate way to manually handle insertion of the dropped object into the list but have not found a good solution given the lifecycle of events.
The text was updated successfully, but these errors were encountered:
There isn't really a good way to perform the insertion manually at the moment, but you could do the insertion in the dnd-drop callback. You will need to return an object though, that then gets inserted by the directive. If you want to get really hacky you could use dnd-inserted as well and manipulate the list after the object was inserted.
Anyways, I should modify the dnd-drop callback to allow manual insertion.
My product has several ng-repeated lists based on objects, not arrays. There are a number of reasons why this is the case, the main one is the performance characteristics when accessing a particular object throughout the app, outside of the ng-repeat.
I've been trying to identify the appropriate way to manually handle insertion of the dropped object into the list but have not found a good solution given the lifecycle of events.
The text was updated successfully, but these errors were encountered: