import { Component, ViewEncapsulation } from '@angular/core'; import { ionicBootstrap, LoadingController, NavController } from 'ionic-angular'; @Component({ templateUrl: 'main.html' }) class Page1 { constructor(public loadingCtrl: LoadingController, public navCtrl: NavController) {} presentLoadingIos() { let loading = this.loadingCtrl.create({ spinner: 'ios', content: 'This is the "ios" spinner. It will dismiss after 3 seconds.', duration: 3000 }); loading.present(); } presentLoadingDots() { let loading = this.loadingCtrl.create({ spinner: 'dots', content: 'This is the "dots" spinner. It will dismiss after 3 seconds.', duration: 3000 }); loading.present(); } presentLoadingBubbles() { let loading = this.loadingCtrl.create({ spinner: 'bubbles', content: 'This is the "bubbles" spinner. It will dismiss after 3 seconds.', duration: 3000 }); loading.present(); } presentLoadingCircles() { let loading = this.loadingCtrl.create({ spinner: 'circles', content: 'This is the "circles" spinner. It will dismiss after 3 seconds.', duration: 3000 }); loading.present(); } presentLoadingCrescent() { let loading = this.loadingCtrl.create({ spinner: 'crescent', content: 'This is the "crescent" spinner. It will dismiss after 3 seconds.', duration: 3000 }); loading.present(); } presentLoadingDefault() { let loading = this.loadingCtrl.create({ content: 'This is the mode specific spinner. It will dismiss after 3 seconds.', duration: 3000 }); loading.present(); } presentLoadingCustom() { let loading = this.loadingCtrl.create({ spinner: 'hide', content: `