We are moving from Angular Tree Component to the PrimeNg Tree component. The tree selection is saved and restored when the application starts. We save the key field (folderId in our case).
Angular Tree Component exposes this method for finding the node:
const node = tree.treeModel.getNodeById(folderId);
After finding the node we can activate it by:
node.setActiveAndVisible();
I was unable to find a similar method for searching the node inside of the PrimeNg Tree. Does someone know what are the alternatives?