ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

ionic 2 rc3 can any have image lazy load

Open ykonstant opened this issue 9 years ago • 2 comments

Can ionic 2 rc3 support image lazy load I used ng2-lazyload-image, but its not working

I have this screen with ion-card, as [virtualScroll] not working in ion-card So when i changed segment or refresh page, it show images fluctuations, and create bad effects.

this is my code:- <ion-card class="custom" *ngFor="let all of posts" tappable (tap)="all.type == 3 ? detailPage($event,all) : ''"> <div class="dashbg" [ngStyle]="{'background-image': 'url(' + bs.setImage(all.image, 'trip', 'trip') + ')'}">

<ion-avatar item-right [ngClass]="{customa: all.going_picture != '' && all.going_picture != null}"> <div class="img" [ngStyle]="{'background-image': 'url(' + bs.setImage(all.picture, 'profile_pictures') + ')'}">

                <ion-avatar item-right class="customb" *ngIf="all.going_picture != ''">
                    <div class="img" [ngStyle]="{'background-image': 'url(' + bs.setImage(all.going_picture, 'profile_pictures') + ')'}"></div>
                </ion-avatar>
                <h2 class="post-title">{{all.title}}</h2>
                <p class="post-address" *ngIf="all.type == 3 ">
                    <ion-icon class="custom" name="md-pin"></ion-icon>
                    {{all.address}}
                </p>
            </ion-item>
        </ion-card>

ykonstant avatar Dec 09 '16 07:12 ykonstant

Hi there. Since this is a question and not an actual issue with the framework, I'm going to close it. Please use the ionic forum or join our slack if you have a question, as stated in our issue template.

mhartington avatar Dec 09 '16 19:12 mhartington

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Sep 05 '18 21:09 ionitron-bot[bot]