I want to create the tree with expanded static first level node.
I have an array with one object defined manually like: [{text: 'All Items', level: 0, link: '...', count: 0, items: [] }].
On ngOnInit I received data from Selector (async data source) and placed it to items[] for second level, refreshed count.
After that I want to load next levels data from another Selectors (async data source).
my function getChildren looks like:
if (expandedLevel === 0) => return array of items from manually created root node.
else => return (async data) from endpoint according needed level.
But I can't to expand the first level programmatically via [expandedKeys]="['All Items']" and [expandBy]="'text'"
Can you help me please.
Regards.