I'm attempting to display an image from an array of objects. Below is the code I have written for this purpose:
product: any[] = [{
id: 121, name: "iphone", url: 'https://www.gstatic.com/webp/gallery3/1.png'
}] //I also tried using a local file path
Here is how I am trying to display the image:
<div *ngFor="let list of product">
{{list.url}}
</div>
However, instead of displaying the image, it only shows the string. Can someone please advise on how to properly call an image that is defined in an array?