mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 21:15:24 +08:00
test(loading): add another page for navigation
This commit is contained in:
@ -91,15 +91,11 @@ class E2EPage {
|
||||
|
||||
setTimeout(() => {
|
||||
this.nav.push(Page2);
|
||||
}, 3000);
|
||||
|
||||
setTimeout(() => {
|
||||
this.nav.push(Page3);
|
||||
}, 3000);
|
||||
}, 1000);
|
||||
|
||||
setTimeout(() => {
|
||||
loading.dismiss();
|
||||
}, 2000);
|
||||
}, 5000);
|
||||
}
|
||||
|
||||
goToPage2() {
|
||||
@ -126,6 +122,12 @@ class E2EPage {
|
||||
class Page2 {
|
||||
constructor(private nav: NavController, private platform: Platform) {}
|
||||
|
||||
onPageLoaded() {
|
||||
setTimeout(() => {
|
||||
this.nav.push(Page3);
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
goToPage3() {
|
||||
this.nav.push(Page3);
|
||||
}
|
||||
|
@ -11,7 +11,7 @@
|
||||
<button block (click)="presentLoadingCrescent()">Crescent Spinner 1500 Duration</button>
|
||||
<button block (click)="presentLoadingDefault()" secondary class="e2eLoadingDefaultSpinner">Default Spinner</button>
|
||||
<button block (click)="presentLoadingCustom()" danger>Custom Spinner</button>
|
||||
<button block (click)="presentLoadingText()" dark>Content Only</button>
|
||||
<button block (click)="presentLoadingText()" dark>Content Only w/ Nav</button>
|
||||
</ion-content>
|
||||
|
||||
<ion-toolbar position="bottom">
|
||||
|
Reference in New Issue
Block a user