import {App, Page, ActionSheet, Loading, NavController, ViewController, Platform} from 'ionic-angular'; @Page({ templateUrl: 'main.html' }) class E2EPage { constructor(private nav: NavController, private platform: Platform) {} presentLoadingIos() { let loading = Loading.create({ spinner: 'ios', content: 'This will dismiss after 5 seconds, or you can click the backdrop to dismiss it now.', enableBackdropDismiss: true, duration: 5000 }); this.nav.present(loading); } presentLoadingDots() { let loading = Loading.create({ spinner: 'dots', content: 'This will dismiss after 5 seconds, or you can click the backdrop to dismiss it now.', enableBackdropDismiss: true, duration: 5000 }); this.nav.present(loading); } presentLoadingBubbles() { let loading = Loading.create({ spinner: 'bubbles', content: 'This will dismiss after 5 seconds, or you can click the backdrop to dismiss it now.', enableBackdropDismiss: true, duration: 5000 }); this.nav.present(loading); } presentLoadingCircles() { let loading = Loading.create({ spinner: 'circles', content: 'This will dismiss after 5 seconds, or you can click the backdrop to dismiss it now.', enableBackdropDismiss: true, duration: 5000 }); this.nav.present(loading); } presentLoadingCrescent() { let loading = Loading.create({ spinner: 'crescent', content: 'This will dismiss after 5 seconds, or you can click the backdrop to dismiss it now.', enableBackdropDismiss: true, duration: 5000 }); this.nav.present(loading); } presentLoadingDefault() { let loading = Loading.create({ content: 'This will dismiss after 5 seconds, or you can click the backdrop to dismiss it now.', enableBackdropDismiss: true, duration: 5000 }); this.nav.present(loading); } presentLoadingCustom() { let loading = Loading.create({ spinner: 'hide', content: `