Is there a way in Angular to retrieve the positions of nodes within a TreeNode hierarchy based on their display order?
I have data structured as TreeNode objects, which include children that can branch off further. How can I access these nodes according to their hierarchical position? For example, if child1 is a child of Children and Children is a child of 'Root', then the position of child2 would be "Root.Children.child1".
**export interface TreeNode {
label?: string;
child?: [TreeNode];
}**