title: How can I get the parent node and its properties? (Angular Material Tree)
body: <p>Docs: <a href="https://material.angular.io/components/tree/overview#nested-tree" rel="nofollow noreferrer">https://material.angular.io/components/tree/overview#nested-tree</a></p>
  
  <p>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?</p>
  
  <p>I am thinking on something like this:</p>
  
  <pre><code>&lt;li class="mat-tree-node" (click)="smthingFn(node)"&gt;
    &lt;button mat-icon-button disabled&gt;&lt;/button&gt;
    {{node.filename}}:  {{node.type}}
  &lt;/li&gt;
  
  
  smthingFn(node):void {
     console.log(node.parent.filename);
  }
  </code></pre>