Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nested ng-repeat drag and drop, AngularJS

Is there a native dragdrop solution for AngularJS, that can handle drag an dropping between nested ng-repeats?

What the current html looks like:

<section ng-repeat="list in lists">
   {{ list.name }}
   <article ng-repeat="user in list.users">
     {{ user.name }}
   </article>
</section>

What I'm trying to achieve is that I can move users to other lists.

I don't wanna have to add jQuery UI as a dependency for just dragdropping.

like image 784
user1867254 Avatar asked Jul 20 '26 22:07

user1867254


1 Answers

I had the same problem and wanted to use native HTML5, too. Since I couldn't find anything I eventually had to build my own library, check out the results:

http://marceljuenemann.github.io/angular-drag-and-drop-lists/demo/#/nested

like image 160
marcelj Avatar answered Jul 22 '26 18:07

marcelj



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!