備忘錄_20160105(定位) 修改 回首頁

程式 2020-03-27 07:06:31 1585263991 100
閱讀 IONIC 4+ 的心得 PART 13 - Progress Indicators

閱讀 IONIC 4+ 的心得 PART 13 - Progress Indicators
import { LoadingController } from '@ionic/angular';

  constructor(private loadingCtrl:LoadingController, ......) { }

  async initialize()
  {
    const loading=await this.loadingCtrl.create
    ({
      message:'Loading tour data...',
      spinner:'crescent' // bubbles | circles | crescent | dots | lines | lines-small | null | undefined
    });
    await loading.present();

    await ......
    await ......
    await ......
    await ......
    await ......
    await ......

    await loading.dismiss();
  }