angular-dragdrop icon indicating copy to clipboard operation
angular-dragdrop copied to clipboard

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

Open beunick opened this issue 10 years ago • 1 comments

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,

    beunick avatar Jul 18 '15 00:07 beunick

    @beunick: Can you share a demo?

    codef0rmer avatar Sep 06 '15 09:09 codef0rmer