Change single image src using (tap)

I’m using a “for” loop to create a list of click-able images for my app. When the user tap the image the “src” of the image change, using Ionics (tap) function. The problem I am having is that all the images change instead of just the image that was clicked.


  <img [src]="imageUrl" (tap)="tapEvent($event)" />


 imageUrl = '';

 tapEvent(e) {
  this.imageUrl = '';  
  setTimeout(() => this.imageUrl = '', 1000);

Hello there
what if i don’t want to make a timeout ?

i mean what if i needed to change the value of imagurl everytime i click
i mean on toggle
if it is true show some url
if it is false show another

like on , off images