Why is the module of angular still not found when it is introduced globally?

clipboard.png

clipboard.png

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

you don't have the md-toolbar component, so you can't use it as a tag


  • first of all, you didn't introduce MatToolbarModule globally.
  • secondly, CoreModule does not import MatToolbarModule , .

I see that you have SharedModule in your code repository. Import all the things of Mat directly into SharedModule and then export them, and then import them directly into SharedModule .

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1beb7a6-31a94.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1beb7a6-31a94.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?