I'm using the angular-tree-component (https://angular2-tree.readme.io/) . 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).
If you have
<tree-root id="tree" [focused]="true" [nodes]="nodes" [options]="options"></tree-root>
and you want to do filtering by string as on the documentation page:
tree.treeModel.filterNodes("text", true);
I would like to know how to access the tree-root from my component and then execute the filterNodes().