屏幕上的問題!!ionic2滑塊無法使用* ngFor - angular2
當我們點擊了跳過按鈕 - 登錄頁面打開!
的登錄頁!
現在,再次點擊首頁圖標滑塊頁面將打開!
問題:
- 滑塊停止工作!試圖滑動時,只有一個圖像顯示,它不起作用。
這裏是代碼:
slides = [
{
title: "Welcome to the Platform!",
description: "The <b>Ionic Component Documentation</b> showcases a number of useful components that are included out of the box with Ionic.",
image: "img/ica-slidebox-img-1.png",
},
{
title: "What is platform?",
description: "<b>Ionic Framework</b> is an open source SDK that enables developers to build high quality mobile apps with web technologies like HTML, CSS, and JavaScript.",
image: "img/ica-slidebox-img-2.png",
},
{
title: "What isPlatform?",
description: "The <b>Ionic Platform</b> is a cloud platform for managing and scaling Ionic apps with integrated services like push notifications, native builds, user auth, and live updating.",
image: "img/ica-slidebox-img-3.png",
}
];
<ion-content class="home-slider-page">
\t <ion-slides pager>
\t \t <ion-slide *ngFor="let slide of slides">
\t \t \t <ion-toolbar>
\t \t \t \t <ion-buttons end>
\t \t \t \t \t <button block (click)="goToCategoryPage()">
\t \t \t \t \t \t Skip
\t \t \t \t \t </button>
\t \t \t \t </ion-buttons>
\t \t \t </ion-toolbar>
\t \t \t <img [src]="slide.image" class="slide-image"/>
\t \t \t <h2 class="slide-title" [innerHTML]="slide.title"></h2>
\t \t \t <p [innerHTML]="slide.description"></p>
\t \t </ion-slide>
\t \t <ion-slide>
\t \t \t <ion-toolbar>
\t \t \t </ion-toolbar>
\t \t \t <img src="img/ica-slidebox-img-4.png" class="slide-image"/>
\t \t \t <h2 class="slide-title">More Products?</h2>
\t \t \t <button large clear (click)="goToCategoryPage()">
\t \t \t \t Continue
\t \t \t \t <ion-icon name="arrow-forward"></ion-icon>
\t \t \t </button>
\t \t </ion-slide>
\t </ion-slides>
</ion-content>
創建問題的演示,否則有太多不清楚。 – dfsq
感謝您的關注! 這裏是演示的鏈接 - https://i.diawi.com/vVs2tn –
我有同樣的問題,你解決了嗎? – vuhung3990