angular-ui / ui-sortable

jQuery UI Sortable for AngularJS
http://angular-ui.github.io/ui-sortable/
MIT License
1.26k stars 444 forks source link

UI-sortable is not working #526

Closed ghost closed 7 years ago

ghost commented 7 years ago

hi,I have check box and button.After checked check box when i click button it will add into array.when i try to move upwards and downwards it will not work

thgreasi commented 7 years ago

I think that your issue is that you didn't define ng-model as the console states.

ghost commented 7 years ago

i have my code below.could you please tell me the issue

JS Bin
{{albumNameArray}}
{{app.name}}
thgreasi commented 7 years ago

The <div ui-sortable="sortableOptionsList[0]" ng-model="albumNameArray"> should also define the ng-model attribute and provide the array that you run your ng-repeat on. Just make sure to also initialize it in your controller $scope.albumNameArray = [].

ghost commented 7 years ago

HI thgreasi,Thank you for responding again.I tried which u told but still i am not able to get output.Could you please make plunkr if you do not mind??

thgreasi commented 7 years ago

How about this?

ghost commented 7 years ago

@ thgreasi Thanks you are awesome