Skip to content

Commit e87d68d

Browse files
committed
1 parent 82fdb4d commit e87d68d

File tree

3 files changed

+4
-237
lines changed

3 files changed

+4
-237
lines changed

README.md

+3-44
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ Demo: http://rubaxa.github.io/Sortable/
1414
* Built using native HTML5 drag and drop API
1515
* Supports
1616
* [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)
1820
* React
1921
* [ES2015+](https://github.com/SortableJS/react-sortablejs)
2022
* [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
325327
---
326328

327329

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-
371330
### Method
372331

373332

bower.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"name": "Sortable",
33
"main": [
4-
"Sortable.js",
5-
"ng-sortable.js"
4+
"Sortable.js"
65
],
76
"homepage": "http://rubaxa.github.io/Sortable/",
87
"authors": [

ng-sortable.js

-191
This file was deleted.

0 commit comments

Comments
 (0)