I'm trying to use mat-icon but it shows me error :'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_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.ngtsc(-998001)
I import it in my app.module.ts
import { MatIconModule } from '@angular/material/icon'
imports: [
BrowserModule,
AppRoutingModule, ReactiveFormsModule,
FormsModule, HttpClientModule,
MatIconModule
]
and in the index.html I added :
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
any help please