test(slides): add test to toggle the last slide with ngIf

references #6651
This commit is contained in:
Brandy Carney
2016-05-31 12:26:56 -04:00
parent dbe54b503d
commit 1b9fafeb49
2 changed files with 7 additions and 1 deletions

View File

@ -19,6 +19,7 @@ class IntroPage {
continueText: string = "Skip";
startingIndex: number = 1;
mySlideOptions;
showSlide: boolean = true;
constructor(private nav: NavController) {
this.mySlideOptions = {
@ -42,6 +43,10 @@ class IntroPage {
console.log("Slide move", slider);
}
toggleLastSlide() {
this.showSlide = !this.showSlide;
}
skip() {
this.nav.push(MainPage);
}

View File

@ -29,8 +29,9 @@
<li>There is no step 3</li>
</ol>
</div>
<button (click)="toggleLastSlide()">Toggle Last Slide</button>
</ion-slide>
<ion-slide>
<ion-slide *ngIf="showSlide">
<h3>Any questions?</h3>
</ion-slide>
</ion-slides>