Skip to content

Commit 3655ca7

Browse files
Fixed scope update in the angularjs sample
1 parent ac91450 commit 3655ca7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

samples/angularjs.directives/CaseAngularJSFirstOrganizationalChartDirective.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@
277277
/* Update widgets here */
278278
var itemScope = angular.element(data.element).scope();
279279
itemScope.itemConfig = itemConfig;
280+
$compile(data.element)(itemScope);
281+
if (!scope.$parent.$$phase) {
282+
itemScope.$apply();
283+
}
280284
break;
281285
}
282286
}
@@ -351,4 +355,4 @@
351355
</div>
352356
</body>
353357

354-
</html>
358+
</html>

0 commit comments

Comments
 (0)