Having trouble with displaying icons in Angular.
In the component.ts file:
import { MatIconModule } from '@angular/material/icon';
@Component({
selector: 'app-dashboard-space',
standalone: true,
imports: [
MatIconModule,
],
And in the HTML file:
<div class="w-[20rem] h-[20rem] bg-yellow-100">
<mat-icon>grade</mat-icon>
</div>
However, instead of seeing the icon, only "gra" text is displayed.
I have already executed
npm install --save @angular/material
.
But no errors are showing in the console. Any suggestions on how to fix this issue?