use applyAsync for compile (#5287)

This commit is contained in:
Mitsuhiro Tanda
2016-06-07 00:18:18 +09:00
committed by Torkel Ödegaard
parent f877afb74d
commit 25899b72d2

View File

@@ -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');
});
});