Files
perry 4a6086c1f8 Revert "Merge branch 'master' of https://github.com/driftyco/ionic"
This reverts commit 8945bf906d68d469e4653a9db2f564bc588eb0d6, reversing
changes made to f4fac225fa3a9151565a1e3c3ccb334405b6a57f.
2016-07-18 19:24:56 -05:00

69 lines
1.2 KiB
TypeScript

import {Component} from '@angular/core';
import {ionicBootstrap, NavController} from '../../../../../src';
@Component({
templateUrl: 'main.html'
})
class IntroPage {
continueText: string = "Skip";
startingIndex: number = 1;
mySlideOptions;
showSlide: boolean = true;
constructor(private nav: NavController) {
this.mySlideOptions = {
paginationClickable: true,
lazyLoading: true,
preloadImages: false,
initialSlide: this.startingIndex
};
}
onSlideChanged(slider) {
console.log("Slide changed", slider);
}
onSlideChangeStart(slider) {
console.log("Slide change start", slider);
slider.isEnd ? this.continueText = "Continue" : this.continueText = "Skip";
}
onSlideMove(slider) {
console.log("Slide move", slider);
}
toggleLastSlide() {
this.showSlide = !this.showSlide;
}
skip() {
this.nav.push(MainPage);
}
}
@Component({
template: `
<ion-header>
<ion-navbar>
<ion-title>Slides</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding>
<h1>Another Page</h1>
</ion-content>
`
})
class MainPage {}
@Component({
template: '<ion-nav [root]="root"></ion-nav>'
})
class E2EApp {
root = IntroPage;
}
ionicBootstrap(E2EApp);