I am having trouble displaying the images from the "image_url" array using a for loop. The images are not showing up as expected.
Here is the content of the array:
image_url: [
0: "https://xyz/16183424594601618342458.5021539.jpg"
1: "https://xyz/16183424594701618342458.579036.jpg"
2: "https://xyz/16183424594511618342458.4947538.jpg"
3: "https://xyz/16183424594661618342458.566865.jpg" ]
I have assigned this array to this.postImages = res.data.postdata.image_url;
<div class="" *ngFor="let images of postImages">
<div class="flex items-center justify-between">
<div class="items-center py-4">
<img class="side-image w-56 h-56 mr-4 bg-cover bg-no-repeat border"
[src]="images ? images : './assets/profile.svg'">
</div>
</div>
</div>
I cannot figure out why the images are not visible. Can someone please help me understand what I am doing wrong?