swimlane / ngx-dnd

🕶 Drag, Drop and Sorting Library for Angular2 and beyond!
https://swimlane.github.io/ngx-dnd/
MIT License
575 stars 135 forks source link

Fetch model data in component #170

Closed sfurman89 closed 4 years ago

sfurman89 commented 4 years ago

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Sorry, we will not be able to answer every support request.  Please consider other venues for support requests

Current behavior

UI works perfectly (drag and drop, sorting, adding n nested objects into array. When I click save, i am not able to get data (megaMenus variable is always the same even if i drag items around)

Expected behavior

When I click save, i want to get updated data

Reproduction of the problem

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

localhost

sfurman89 commented 4 years ago

Hey guys,

I've found a solution with drop event and manually refreshing the array to be the same as model.

Regards