Code: Select all
<p-tree class="large"
[value]="treeNodes"
selectionMode="single"
[(selection)]="selectedNode"
(onNodeSelect)="onNodeClick($event)">
</p-tree>
The structure is of the components is something like:
Code: Select all
[component top]
[component tree]
<router-outlet></router-outlet>
[/component top]