title: Using filter on angular-tree-component
body: <p>I'm using the angular-tree-component (<a href="https://angular2-tree.readme.io/" rel="nofollow noreferrer">https://angular2-tree.readme.io/</a>) . I would like to implement the filter functionality but from the documentation it's not really clear to me how to start using the filtering in Angular (4). </p>
  
  <p>If you have</p>
  
  <pre><code>&lt;tree-root id="tree" [focused]="true" [nodes]="nodes" [options]="options"&gt;&lt;/tree-root&gt;
  </code></pre>
  
  <p>and you want to do filtering by string as on the documentation page:</p>
  
  <pre><code>tree.treeModel.filterNodes("text", true);
  </code></pre>
  
  <p>I would like to know how to access the tree-root from my component and then execute the filterNodes(). </p>