We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2b73e0 commit 704cc55Copy full SHA for 704cc55
src/sortable.js
@@ -93,7 +93,7 @@ angular.module('ui.sortable', [])
93
94
// When we add or remove elements, we need the sortable to 'refresh'
95
// so it can find the new/removed elements.
96
- scope.$watch('ngModel.length', function() {
+ scope.$watchCollection('ngModel', function() {
97
// Timeout to let ng-repeat modify the DOM
98
$timeout(function() {
99
// ensure that the jquery-ui-sortable widget instance
0 commit comments