On the main page of my Ionic3 App, I have an ion-slides component.
<ion-slides pager>
<ion-slide *ngFor="let blog of blogs | async" >
<h2>{{ blog.title }}</h2>
<p>
<a target="_blank" class="slider-read-more" ion-button outline color="secondary" (click)="blogDetail(blog)">Read More</a>
</p>
</ion-slide>
</ion-slides>
I am trying to apply an inline CSS background image using style attribute:
<ion-slide *ngFor="let blog of blogs | async" style="background:url(blog.image) no-repeat center center fixed;">
However, I am unable to pass blog.image inside. Is there a way to achieve this?