1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

How to make MatBadge contain an icon instead of text?

Discussão em 'Angular' iniciado por van_Skyr, Junho 30, 2025.

  1. van_Skyr

    van_Skyr Guest

    Using angular/material 6.2.1, I am trying to add a badge to a button, which works fine. However, instead of showing plain text that I can set by using the matBadge directive, I would like the badge to show a material icon instead.

    Does anyone know what I have to do to achieve this? I suppose I could use jQuery but I am wondering whether there might be a smoother/easier way to do so.

    Continue reading...

Compartilhe esta Página