【发布时间】:2019-07-30 13:16:01
【问题描述】:
目前,我正在从事 angular6 的项目, 我正确配置了 ng-block-ui(我已经在 angular5 中的一个项目中使用了 ng-block-ui),但是在组件模板中绑定时遇到了 ng-block-ui 的问题,如下所示
block-ui' is not a known element:
1. If 'block-ui' is an Angular component, then verify that it is part of this module.
2. If 'block-ui' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
[ERROR ->]<block-ui>
<!-- Your app markup here -->
</block-ui>
"): ng:///HtmlLayoutModule/AdminComponent.html@0:0
Error: Template parse errors:
这是我正在使用的版本
"ng-block-ui": "^1.0.4",
"primeng": "^6.0.0-alpha.1",
"rxjs": "^6.2.0",
"rxjs-compat": "^6.2.0",
【问题讨论】:
-
确保你已经在root中导入
module?
标签: angular angular6 blockui angular-cli-v6