' app-sidenav-list'不是已知元素
当我创建Sidenav选项卡时。但是将其用于HTML时会遇到一些错误。
要检查错误,请找到屏幕快照。 错误
要检查模块导入文件,请检查ScreenSot- app.module.ts
'app-sidenav-list'不是已知元素:
- 如果“ app-sidenav-list”是一个角度组件,然后验证它是该模块的一部分。
- 如果“ app-sidenav list”是一个Web组件,则将“ custom_elements_schema”添加到此组件的“@ngmodule.schemas”中,以抑制此消息。
when I create sidenav tabs. but getting some errors while using it into HTML.
To check the error please find the screenshot as-
Error
To check the module imports file please check the screensot - app.module.ts
'app-sidenav-list' is not a known element:
- If 'app-sidenav-list' is an Angular component, then verify that it is part of this module.
- If 'app-sidenav-list' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请检查您是否已在app.module.ts中导入了Sidenavlist组件。
Please check if you have imported the SidenavList component in your app.module.ts.
当未在
app.module.ts
文件中添加有关组件时,通常会发生这种情况。请验证并相应确认。
This typically happens when the component in question has not been added in
app.module.ts
file.Please verify and confirm accordingly.