I'm using the Angular Material Tree in my project. Is it possible to have the tree opened by default.
I'm using the last example via Tree with partially loaded data: https://stackblitz.com/angular/pyyaxgjpqnn?file=app%2Ftree-loadmore-example.ts
Thanks for your help.
I tried this solution but I have this error : ERROR Error: "ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'aria-expanded: false'. Current value: 'aria-expanded: true'."
ngAfterViewInit() {
this.treeControl.expandAll();
}