If you get the error that"'mat-button' is not a known element", then you have to import theMatButtonModulecomponent and add it to theimportsarray as well. app.module.ts import{MatIconModule}from'@angular/material/icon';import{MatButtonModule}from'@angular/material/button';@NgModule({impor...
Error: src/app/FamilyDocuments/familydocs/familydocs.component.html:9:9 - error NG8001: 'mat-icon' is not a known element: 1. If 'mat-icon' is an Angular component, then verify that it is part of this module. 2. If 'mat-icon' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA'...
**Error: src/app/pages/layout/top-header/top-header/top-header.component.html:160:13 - error NG8001: 'mat-icon' is not a known element: If 'mat-icon' is an Angular component, then verify that it is part of this module. If 'mat-icon' is a Web Component then add 'CUSTOM_ELEMENTS...