'hgroup' 不是 Angular 中的已知元素错误 5
'hgroup' is not a known element error in Angular 5
我在使用标签时遇到了这个错误
*.component.html,但是在删除元素时代码工作正常,背后的原因是什么?未捕获的错误:模板
解析错误:'hgroup' 不是已知元素:
If 'hgroup' is an Angular component, then verify that it is part of this module.
To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component....
根据MDN
The element has been removed from the HTML5 (W3C) specification, but it still is in the WHATWG version of HTML. It is partially implemented in most browsers, ...
因此,我建议您从 html 代码中删除 hgroup
元素并使用 CSS 实现相同的样式,因为您可能会在不同的浏览器中获得不同的样式。
你也应该结帐Subheadings, subtitles, alternative titles and taglines without using <hgroup>
我在使用标签时遇到了这个错误 *.component.html,但是在删除元素时代码工作正常,背后的原因是什么?未捕获的错误:模板 解析错误:'hgroup' 不是已知元素:
If 'hgroup' is an Angular component, then verify that it is part of this module.
To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component....
根据MDN
The element has been removed from the HTML5 (W3C) specification, but it still is in the WHATWG version of HTML. It is partially implemented in most browsers, ...
因此,我建议您从 html 代码中删除 hgroup
元素并使用 CSS 实现相同的样式,因为您可能会在不同的浏览器中获得不同的样式。
你也应该结帐Subheadings, subtitles, alternative titles and taglines without using <hgroup>