From 1d25147c671701bf881f339e16890b3a4dee804a Mon Sep 17 00:00:00 2001 From: Luke Bennett Date: Thu, 4 Jun 2015 19:33:12 +0100 Subject: [PATCH] Update list variable when watching for array changes --- src/directives/array.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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