diff --git a/src/directives/array.js b/src/directives/array.js index 5e85dd916..b5b039e7e 100644 --- a/src/directives/array.js +++ b/src/directives/array.js @@ -43,7 +43,7 @@ angular.module('schemaForm').directive('sfArray', ['sfSelect', 'schemaForm', 'sf // the outside so let's watch for that. We use an ordinary watch since the only case // we're really interested in is if its a new instance. scope.$watch('model' + sfPath.normalize(form.key), function(value) { - scope.modelArray = value; + list = scope.modelArray = value; }); // Since ng-model happily creates objects in a deep path when setting a