Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70914

Ionic 4 Card display bug

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 70914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>