我正在将Angular应用升级到版本19。升级后,我发现Nestedtreecontrol被弃用了。即使仍然可用,我的IDE表明 @deprecated使用Levelac之一...

问题描述 投票:0回答:0
@deprecated Use one of levelAccessor or childrenAccessor instead. To be removed in a future version.

我想通过阅读官方文档来替换功能,但没有运气;该文档尚不完整,评论建议将其替换为
childrenAccessor

,但是某些功能,例如

this.treeControl.expand(node);

childrenAccessor

中不再可用。

I无法提供源代码,但是如果有人可以提供一些Angular 19和材料组件V3的示例,我将不胜感激,这些示例显示了我们如何在Tree Component的较新版本中使用Nodes扩展的功能。

	

我也想要答案。 您现在解决了吗?


angular-material tree angular-tree-component
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.