我遇到错误,请给我解决方案

时间:2019-06-25 12:19:55

标签: angular7

1)我制作了Layout-Component int,添加了标头和路由器出口。 2)使用侧边栏和页脚制作用户组件。 现在我收到此错误: editor.js:2430未捕获的错误:模板解析错误: “ app-footer”不是已知元素: 1.如果“ app-footer”是Angular组件,请验证它是否是此模块的一部分。 2.如果“ app-footer”是Web组件,则将“ CUSTOM_ELEMENTS_SCHEMA”添加到该组件的“ @ NgModule.schemas”以禁止显示此消息。 (“

<router-outlet></router-outlet>
[ERROR ->]<app-footer *ngIf="footerVisble"></app-footer>

* layout_component

* user_component

                        

*错误:

compiler.js:2430未捕获的错误:模板解析错误: “ app-footer”不是已知元素: 1.如果“ app-footer”是Angular组件,请验证它是否是此模块的一部分。 2.如果“ app-footer”是Web组件,则将“ CUSTOM_ELEMENTS_SCHEMA”添加到该组件的“ @ NgModule.schemas”以禁止显示此消息。 (“

<router-outlet></router-outlet>
[ERROR ->]<app-footer *ngIf="footerVisble"></app-footer>

请给我解决方法。

0 个答案:

没有答案
相关问题