import {App, Page, ActionSheet, Loading, NavController, ViewController, Platform} from 'ionic-angular'; @Page({ templateUrl: 'main.html' }) class E2EPage { constructor(private nav: NavController, private platform: Platform) {} showLoadingIos() { let loading = Loading.create({ icon: 'ios', enableBackdropDismiss: true }); this.nav.present(loading); } showLoadingDots() { let loading = Loading.create({ icon: 'dots', content: 'Loading...', enableBackdropDismiss: true }); this.nav.present(loading); } showLoadingBubbles() { let loading = Loading.create({ icon: 'bubbles', content: 'Loading...', enableBackdropDismiss: true }); this.nav.present(loading); } showLoadingCircles() { let loading = Loading.create({ icon: 'circles', content: 'Loading...', enableBackdropDismiss: true }); this.nav.present(loading); } showLoadingCrescent() { let loading = Loading.create({ icon: 'crescent', content: 'Please wait...', enableBackdropDismiss: true, duration: 1500 }); this.nav.present(loading); } showLoadingDefault() { let loading = Loading.create({ icon: 'platform', content: 'Please wait...', enableBackdropDismiss: true, }); this.nav.present(loading); } showLoadingCustom() { let loading = Loading.create({ content: `