Upgraded to Angular v15 and mat badges won’t show text on mat-icons. But will show special characters, like ‘&, !, …’. Was working before on v14

  Kiến thức lập trình
<button mat-flat-buton>
  <mat-icon matBadge="1">home</mat-icon>
</button>

<button mat-flat-buton>
  <mat-icon matBadge="!">home</mat-icon>
</button>

I’ve checked the html and I see the span with the text there

stackblitz link

any help would be really appreciated, thanks!

LEAVE A COMMENT