-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
iand change the classes of the icons through the condition.– LeAndrade