I am building an Angular app. I need to add different images to each button.
HTML:
<div *ngFor="let Items of myItems">
<button class="close-image"><img src="../../assets/img/flower.png">
<span>
</span>
</button>
</div>
From above code I am creating buttons depend on response (example: four buttons), and all buttons contain same image. How should I add different images to each of these ngFor buttons?
myItems, if so. You can add image field to that modal. while gettingmyItemsvalue, you can assign image value to that key. So in markup you can getimage