typescript IF_04_14_LoadingController_TS

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了typescript IF_04_14_LoadingController_TS相关的知识,希望对你有一定的参考价值。

import { Component } from '@angular/core';
import { LoadingController } from '@ionic/angular';

@Component({
  selector: 'app-home',
  templateUrl: 'home.page.html',
  styleUrls: ['home.page.scss'],
})
export class HomePage {

  constructor(public loadingCtrl: LoadingController){

  }

  async showLoading(){

    let loading = await this.loadingCtrl.create({
      content: "Loading...",
      spinner: "dots"
    });

    loading.present();

    // Code to dismiss loading overlay automatically after 5 seconds
    setTimeout(() => {
      loading.dismiss()
    }, 5000)

  }

}

以上是关于typescript IF_04_14_LoadingController_TS的主要内容,如果未能解决你的问题,请参考以下文章

typescript IF_06_04_home.page.ts_2

typescript IF_04_20_Actionsheet_TS

typescript IF_04_18_AlertController_TS

typescript IF_04_16_ToastController_TS

typescript IF_04_10_Checkbox_Binding_2_TS

typescript IF_04_12_Select_Binding_TS