Designing Components That Include Angular Material Icons | Task

Ole Ersoy
Jun - 04  -  1 min

Scenario

We have included MatIconModule in our component library, however the icons used by our component are not rendering.

Approach

Since the MatIconModule uses the HttpClientModule, it must also be included in order for the MatIconModule to load the icons.

Include it in the module imports array like this:

  imports: [
    MatIconModule,
    HttpClientModule
  ]