@tbaumer22 wrote:
Hey everyone,
I’m currently having an issue where cards in Ionic 4 won’t render for me if a card only consists of an image component. For example:
<ion-card> <ion-img src="{{image}}"></ion-img> </ion-card>
This card renders as white space with no card even though the image variable has been set to a valid image url. You may think that there could be a bug in my code in setting this variable, however when I add anything other than the image to the card, the card successfully renders with the image. For example:
<ion-card> <ion-img src="{{image}}"></ion-img> hi </ion-card>
This card renders fine, but in my case, I don’t want the card to have anything on it except the image itself.
Are there any workarounds to this?
I’m also not sure if this a problem that only I’m experiencing, so any help would be greatly appreciated!
Posts: 5
Participants: 2