Place an icon instead of an HTML string

Asked

Viewed 20 times

-1

I have the following code:

<a (click)="verificarSeEscondeSaldo()"> {{ escondeSaldo ? 'Exibir' : 'Ocultar'}}</a>

treecho correctly does what I wish, but instead of the text: 'display' or 'hide' I would like to put an icon.

Can someone help how to do??

  • Please clarify your problem or provide additional details in order to highlight exactly what you need. The way it’s written these days it’s hard to tell exactly what you’re asking.

  • Using icons from the library fontawesome for example, you can insert the icons into a tag i and change the classes of the icons through the condition.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.