Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when adding "orderBy" filter to second collection-no item displayed #18

Open
shootermv opened this issue Dec 11, 2013 · 0 comments
Open

Comments

@shootermv
Copy link

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>
shootermv added a commit to shootermv/angular-dragon-drop that referenced this issue Dec 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant