79694208

Date: 2025-07-08 12:13:28
Score: 1
Natty:
Report link

Angular Material 19.2:

@ViewChild(MatTree)
tree!: MatTree<YourNodeType>;

...

private expandNodes(nodes: YourNodeType[]): void {
  for (const node of nodes) {
    if (node.expanded) {
      this.tree.expand(node);
    }
  }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Gadge