Uncaught Error: Template parse errors:
'md-toolbar' is not a known element:
1. If 'md-toolbar' is an Angular component, then verify that it is part of this module.
git: https://github.com/yyccQQu/0405newNg/tree/dev/my-app
Uncaught Error: Template parse errors:
'md-toolbar' is not a known element:
1. If 'md-toolbar' is an Angular component, then verify that it is part of this module.
git: https://github.com/yyccQQu/0405newNg/tree/dev/my-app
MatToolbarModule
CoreModule
里面也并没有导入MatToolbarModule
,这里我看你代码仓库里有
SharedModule
,直接把Mat
的所有东西都导入SharedModule
再导出,之后直接导入SharedModule
即可。