Hello, I am currently working on ionic 3 project. I am trying to repeat a list of objects in array using ngFor. However, some properties of some objects do not exist at all. i keep on getting TypeError: Cannot read property ‘query’ of null. Is there anyway to skip the propeties that do not exist on the object and still load the rest.
<ion-content >
<ion-card *ngFor="let image of images">
<img src="{{image.images.low_resolution.url}}">
<ion-card-content>
<!-- this property exist on some objects only -->
<p > {{image.caption.text}} </p>
</ion-card-content>
</ion-card>
</ion-content>