是否有适用于 AngularJS 的原生拖放解决方案,可以处理嵌套 ng-repeat 之间的拖放?
当前的 html 是什么样的:
<section ng-repeat="list in lists">
{{ list.name }}
<article ng-repeat="user in list.users">
{{ user.name }}
</article>
</section>
我想要实现的是我可以将用户移动到其他列表。
我不想仅仅为了拖放而添加 jQuery UI 作为依赖项。
最佳答案
我遇到了同样的问题,也想使用原生 HTML5。由于找不到任何东西,我最终不得不构建自己的库,查看结果:
http://marceljuenemann.github.io/angular-drag-and-drop-lists/demo/#/nested
关于angularjs - 嵌套的 ng-repeat 拖放,AngularJS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21768311/