NG0303:无法绑定到“matTreeNodeDefWhen",因为它不是“mat-tree-node"的已知属性 [英] NG0303: Can't bind to 'matTreeNodeDefWhen' since it isn't a known property of 'mat-tree-node'

查看:29
本文介绍了NG0303:无法绑定到“matTreeNodeDefWhen",因为它不是“mat-tree-node"的已知属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试遵循 this 教程,该教程的标题为";带有动态数据的树",但没有呈现任何内容,我收到此错误.有没有人有什么建议?我已经复制了示例中的代码.

I'm trying to follow this tutorial, the on that is titled "Tree with dynamic data", but nothing is rendered and I got this error. Does anyone have any suggestions? I have copy past the code from the example.

推荐答案

when: hasChild was cause the error in matTreeNodeDefWhen(我忘记将其添加到类中)

when: hasChild was causing the error in matTreeNodeDefWhen (I forgot to add that to the class)

这篇关于NG0303:无法绑定到“matTreeNodeDefWhen",因为它不是“mat-tree-node"的已知属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆