diff --git a/front/core/components/treeview/childs.html b/front/core/components/treeview/childs.html
index 7dd242380..5573dbbd9 100644
--- a/front/core/components/treeview/childs.html
+++ b/front/core/components/treeview/childs.html
@@ -3,7 +3,7 @@
{
+ this.treeview.$transclude(($clone, $scope) => {
+ this.$contentScope = $scope;
$scope.item = this.item;
- this.$element.append(tClone);
+ this.$element.append($clone);
});
}
+
+ $onDestroy() {
+ if (this.$contentScope)
+ this.$contentScope.$destroy();
+ }
}
Controller.$inject = ['$element'];