@@ -14,7 +14,9 @@ Demo: http://rubaxa.github.io/Sortable/
14
14
* Built using native HTML5 drag and drop API
15
15
* Supports
16
16
* [ Meteor] ( https://github.com/SortableJS/meteor-sortablejs )
17
- * [ AngularJS] ( #ng )
17
+ * [ AngularJS]
18
+ * [ 2+] ( https://github.com/SortableJS/angular-sortablejs )
19
+ * [ 1.* ] ( https://github.com/SortableJS/angular-legacy-sortablejs )
18
20
* React
19
21
* [ ES2015+] ( https://github.com/SortableJS/react-sortablejs )
20
22
* [ Mixin] ( https://github.com/SortableJS/react-mixin-sortablejs )
@@ -325,49 +327,6 @@ The speed at which the window should scroll once the mouse pointer gets within t
325
327
---
326
328
327
329
328
- <a name =" ng " ></a >
329
- ### Support AngularJS
330
- Include [ ng-sortable.js] ( ng-sortable.js )
331
-
332
- Demo: http://jsbin.com/naduvo/1/edit?html,js,output
333
-
334
- ``` html
335
- <div ng-app =" myApp" ng-controller =" demo" >
336
- <ul ng-sortable >
337
- <li ng-repeat =" item in items" >{{item}}</li >
338
- </ul >
339
-
340
- <ul ng-sortable =" { group: 'foobar' }" >
341
- <li ng-repeat =" item in foo" >{{item}}</li >
342
- </ul >
343
-
344
- <ul ng-sortable =" barConfig" >
345
- <li ng-repeat =" item in bar" >{{item}}</li >
346
- </ul >
347
- </div >
348
- ```
349
-
350
-
351
- ``` js
352
- angular .module (' myApp' , [' ng-sortable' ])
353
- .controller (' demo' , [' $scope' , function ($scope ) {
354
- $scope .items = [' item 1' , ' item 2' ];
355
- $scope .foo = [' foo 1' , ' ..' ];
356
- $scope .bar = [' bar 1' , ' ..' ];
357
- $scope .barConfig = {
358
- group: ' foobar' ,
359
- animation: 150 ,
360
- onSort : function (/** ngSortEvent */ evt ){
361
- // @see https://github.com/RubaXa/Sortable/blob/master/ng-sortable.js#L18-L24
362
- }
363
- };
364
- }]);
365
- ```
366
-
367
-
368
- ---
369
-
370
-
371
330
### Method
372
331
373
332
0 commit comments