SoCreate / angular-playground

A drop in app module for working on Angular components in isolation (Angular version 2.x and above).
http://www.angularplayground.it
MIT License
457 stars 62 forks source link

Playground not showing icon outline of Material #313

Open jqr91 opened 2 years ago

jqr91 commented 2 years ago

Versions

    "angular-playground": "^10.0.1"
Angular CLI: 14.0.3
Node: 16.13.2
Package Manager: npm 8.3.0 
OS: darwin x64

Angular: 14.0.3
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, material, platform-browser, platform-browser-dynamic
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1400.3
@angular-devkit/build-angular   14.0.3
@angular-devkit/core            14.0.3
@angular-devkit/schematics      14.0.3
@schematics/angular             14.0.3
rxjs                            7.5.5
typescript                      4.7.4

Repro steps

When the fake icon registry is loaded into the app.component like this:

constructor(private iconService: IconService) { this.iconService.registerIcon(); }

and the iconService like this:

public registerIcon() { this.iconRegistry.setDefaultFontSetClass('material-icons-outlined'); }

this happens:

Schermata 2022-07-19 alle 17 25 56

How can I solve this problem? Any solution?

Thanks