I'm trying to figure out how to send the ID of a product from a database to the getImage function. I want the function to use this ID to find and display the image associated with that product.
HTML
<div class="container-fluid first" style="cursor: pointer;" data-toggle="modal" data-target="#modalPoll" >
<div class="row tab-pane Galeria">
<div *ngFor="let product of products" class="col-xl-2 col-lg-3 col-md-4 col-sm-6">
<div class="image-item" (click)="fillModal($event, product)">
<a class="d-block image-block h-100" >
<homeImage>
<img *ngIf [src]="Images" class="Images img-fluid" alt="">
</homeImage>
</a>
<div class="ImageText"> {{product.name}}</div>
</div>
</div>
</div>
</div>