Docs: https://material.angular.io/components/tree/overview#nested-tree
This is exactly the same that I want to do, but I need the parent of a node. How to get it on the template?
I am thinking on something like this:
<li class="mat-tree-node" (click)="smthingFn(node)">
<button mat-icon-button disabled></button>
{{node.filename}}: {{node.type}}
</li>
smthingFn(node):void {
console.log(node.parent.filename);
}