I am currently facing an issue:
I have an array of blog posts. Some of them have photos, while others do not. I aim to display the first photo if any are set. How can I verify whether the URL value in my array is set?
<ion-header>
<ion-navbar>
<ion-title>Blogposts</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding>
<ion-list>
<ion-item *ngFor="let post of posts">
<ion-card>
<img [src]="post.photos[0].original_size.url"/>
<ion-card-content>
<ion-card-title>
</ion-card-title>
{{post.summary}}
</ion-card-content>
</ion-card>
</ion-item>
</ion-list>
</ion-content>