<
我想让我的列表排序与AngularUI
砰砰作响:
http://plnkr.co/edit/2zbn2rBpnat8lEQZRGd9?p =
预览<ul ui-sortable ng-model="deals.numer">
<li ng-repeat="deals in list" class="bg-info" style="padding: 5px; margin: 5px;">
是否有可能使这个列表排序后添加一些新的元素到数组?
让你的活塞工作:
- 添加jquery和jqueryUI作为依赖项
添加
ui.sortable
作为模块依赖:angular.module('myApp', ['ui.sortable']);
-
替换:
<ul ui-sortable ng-model="deals.numer">
:
<ul ui-sortable ng-model="list">
<
看到strong>恰好