ionic3 Loading组件的用法

import { LoadingController } from 'ionic-angular';


@Component({
  selector: 'page-contact',
  templateUrl: 'contact.html'
})
export class ContactPage {

  constructor(public loadingCtrl: LoadingController) {

  }
  showFull(){
    //创建loading窗口,模拟3秒后登录成功,loading消失
    let loader = this.loadingCtrl.create({
      content: "加载中...",
      spinner: 'crescent',
      duration: 3000
    });
    loader.present();
   
  }
 

 

posted @ 2019-02-28 14:54  Ai-Long  阅读(977)  评论(0编辑  收藏  举报