@@ -206,9 +206,12 @@ function pluginDirectiveLoader($compile, datasourceSrv, $rootScope, $q, $http, $
});
$compile(child)(scope);
-
elem.empty();
- elem.append(child);
+
+ // let a binding digest cycle complete before adding to dom
+ setTimeout(function() {
+ elem.append(child);
+ });
}
function registerPluginComponent(scope, elem, attrs, componentInfo) {