-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
I want both collections to be sorted by some id:
After i dragged some item to dropabble area - i want the dropped collection to be sorted too.
angular.module('ExampleApp', ['btford.dragon-drop']).
controller('MainCtrl', function ($scope) {
$scope.things = [{name:'one',id:3}, {name:'two',id:2}, {name:'three',id:1}];
$scope.otherThings = [];
});
When "orderby" filter added to first collection in the demo - its displayed correctly
but nothing displayed after adding "orderby" filter to second droparea
(after you dragged and dropped some items from the first)
< class="row">
<div class="span6">
<h3>Things</h3>
<div btf-dragon="thing in things | orderBy:'id'">{{thing.name}}</div>
</div>
<div class="span6">
<h3>Other Things</h3>
<div btf-dragon="thing in otherThings | orderBy:'id'">{{thing.name}}</div>
</div>
</div>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels