angular-ngrx-material-starter icon indicating copy to clipboard operation
angular-ngrx-material-starter copied to clipboard

Material Icons don't show up

Open marioagarcia opened this issue 4 years ago • 4 comments

Hi, when I try to use a simple mat-icon element the icon does not show up. Would you tell me what I need to override so that I can use a normal mat-icon like this:

<mat-icon>home</mat-icon>

The reason why I need to use normal mat-icons is that when trying to use the Angular Material's stepper the edit icons that the stepper uses don't show up as they should.

Thank you.

marioagarcia avatar Jan 07 '20 15:01 marioagarcia

Hey @marioagarcia did you find any solutions to use mat-icon?

parthnayak7448 avatar Jan 30 '20 20:01 parthnayak7448

Hi @marioagarcia !

The icons are imported explicitly to reduce bundle size. You have to add it here

Hope that helps!

tomastrajan avatar Feb 04 '20 08:02 tomastrajan

Thanks for the tip. I see that is the case for font-awesome icons but not material icons. I am able to see the material icons after adding this to the index.html file:

<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
      rel="stylesheet">

@parthnayak7448, hope this helps!

marioagarcia avatar Feb 13 '20 06:02 marioagarcia

Hi @marioagarcia !

The icons are imported explicitly to reduce bundle size. You have to add it here

Hope that helps!

For me it was working when I made the entry in core.module file

bhagwatipandey avatar Apr 21 '20 13:04 bhagwatipandey