From 25899b72d2b6ca4ab13d408a14b54906fd901fc6 Mon Sep 17 00:00:00 2001 From: Mitsuhiro Tanda Date: Tue, 7 Jun 2016 00:18:18 +0900 Subject: [PATCH] use applyAsync for compile (#5287) --- public/app/core/directives/plugin_component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/core/directives/plugin_component.ts b/public/app/core/directives/plugin_component.ts index c8fb5c9ba91..dbe9932d574 100644 --- a/public/app/core/directives/plugin_component.ts +++ b/public/app/core/directives/plugin_component.ts @@ -211,7 +211,7 @@ function pluginDirectiveLoader($compile, datasourceSrv, $rootScope, $q, $http, $ // let a binding digest cycle complete before adding to dom setTimeout(function() { elem.append(child); - scope.$apply(function() { + scope.$applyAsync(function() { scope.$broadcast('refresh'); }); });