Skip to content

Commit 7517ff8

Browse files
committed
Merge pull request #420 from lukebennett/development
Update list variable when watching for array changes
2 parents 2cf33c9 + 1d25147 commit 7517ff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directives/array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ angular.module('schemaForm').directive('sfArray', ['sfSelect', 'schemaForm', 'sf
4343
// the outside so let's watch for that. We use an ordinary watch since the only case
4444
// we're really interested in is if its a new instance.
4545
scope.$watch('model' + sfPath.normalize(form.key), function(value) {
46-
scope.modelArray = value;
46+
list = scope.modelArray = value;
4747
});
4848

4949
// Since ng-model happily creates objects in a deep path when setting a

0 commit comments

Comments
 (0)