getChildrenNode(event) { this.idFolder = event.node.data.id; this.mediaLibraryService.getMediaByFolder(this.idFolder).subscribe(children => { this.childrenNode = event.node.data.children = children; this.tree.treeModel.update(); }); }