From aefa55531bc11419ee90aade799587259433a3b9 Mon Sep 17 00:00:00 2001 From: Sergey Bedulin Date: Thu, 8 Dec 2016 19:23:18 -0800 Subject: [PATCH] (key,val) ng-repeat not updating "child" binding updates may not propagate to ng-repeat. Using parent scope reference fixes this (simpler example here http://stackoverflow.com/questions/24774435/angularjs-ng-model-inside-ng-repeat-via-key-val-not-updating) Bug steps are here http://stackoverflow.com/questions/41007472/a-bug-in-a-json-editor-by-angularjs Note: updated only default switch, please fix other conditions. --- js/directives.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/directives.js b/js/directives.js index 3ef194e..81ba777 100644 --- a/js/directives.js +++ b/js/directives.js @@ -193,8 +193,8 @@ angular.module('JSONedit', ['ui.sortable']) + '' + '' - + '' + + '' + '' + '';