1
I have an ngfor of buttons with certain images, but I want that image to appear initially with the black color and only when clicking on the image appears the image. What would my class look like in css?
<ion-content>
<ion-grid>
<ion-row>
<ion-col col-4 *ngFor="let img of array.image" >
<button id="botao" (click)="mostraImagem(img)">
<img src="{{img}}" class="mostra_imagem">
</button>
</ion-col>
</ion-row>
</ion-grid>
</ion-content>
ng-show or ng-toggle would not help you?
– Carlos Fagiani Jr
Wouldn’t it be the idea to press all the buttons with that image and hide the image from the button, you know? and at some point I’ll make her appear again so it wouldn’t be to withdraw but to hide.
– i9on i9on