The error occurred while running.
Unexpected value 'MatIconRegistry' imported by the module 'AppModule'.
Please add a @NgModule annotation
How to solve this error. I added the "@angular/material" in app.module.ts. Still, it's thrown an error.
The error occurred while running.
Unexpected value 'MatIconRegistry' imported by the module 'AppModule'.
Please add a @NgModule annotation
How to solve this error. I added the "@angular/material" in app.module.ts. Still, it's thrown an error.
Import MatIconModule in your app.module.ts file as below -
import {MatIconModule} from '@angular/material';
imports: [
// Your other imports
MatIconModule
],
Hope this will solve your problem