codef0rmer / angular-dragdrop

Implementing jQueryUI Drag and Drop functionality in AngularJS (with Animation) is easier than ever
http://codef0rmer.github.com/angular-dragdrop/#/
MIT License
1.78k stars 574 forks source link

Assigning dynamic name to NgModel in the loop break the drag and drop #202

Open beunick opened 9 years ago

beunick commented 9 years ago

Hello,

For this http://codef0rmer.github.io/angular-dragdrop/#/list, I have a dynamic (not fix) number of draggable boxes. So in my controller I define one list as $scope.list={}; In the droppable section of the code here is how my ngRepeat look like:

  • {{item2.name}}
  • When I do that here is the error message I have: Uncaught Error: Syntax error, unrecognized expression: [ng-model='list[item.name']]

    So I think the directive "data-jqyoui-options" don't like the way ngModel is format...

    Is anyone already had that scenario before ? Because all the example are with fix number of draggable boxes.

    Please advise. Thanks,

    codef0rmer commented 9 years ago

    @beunick: Can you share a demo?