This screenshot says it all:
I print the image source in each card to show that the url is correct.
But for some reason, the url is missing the last 2 characters. For example if it ends with .gif' it will be
.g` instead!
Here is the html portion:
<div *ngFor="let item of response" routerLink="/imgur-image-details" [state]="item">
<ion-card>
<ion-img [src]="item.linkThumbnail" class="img-thumbnail" zooming="true">
</ion-img>
<ion-card-content>
<ion-card-title>
{{ item.linkThumbnail }}
</ion-card-title>
<p>{{ item.type }}</p>
</ion-card-content>
</ion-card>
</div>
Only the first 5 or 6 images get a correct url. I assumed that all images that are visible at first will get a correct src
value, but the ones that I have to scroll down to will get the incorrect src
value.
1 post - 1 participant