本文整理汇总了TypeScript中ionic-angular.LoadingController.dismiss方法的典型用法代码示例。如果您正苦于以下问题:TypeScript LoadingController.dismiss方法的具体用法?TypeScript LoadingController.dismiss怎么用?TypeScript LoadingController.dismiss使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ionic-angular.LoadingController
的用法示例。
在下文中一共展示了LoadingController.dismiss方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1:
this.musicService.getFirstTracks(value).then((tracks) => {
console.log(tracks);
SC.stream(`/tracks/${tracks[0].id}`).then((player) => {
this.initSong = player;
})
this.songs = tracks;
loading.dismiss();
})
示例2:
this.api.doLogin().then((data: any) => {
if (!data.email) {
let alert = this.alert.create({
title: 'Error ' + data.status,
subTitle: data._body,
buttons: ['OK']
});
loading.dismiss();
alert.present();
return;
}
this.api.setData(this.api.data.username, this.api.data.password, this.api.data.url);
this.api.user = data;
this.api.saveUser(data);
loading.dismiss();
this.navCtrl.setRoot(Page1);
}).catch((err) => {
示例3:
}, (error) => {
this.users = [];
loading.dismiss();
});
示例4: setTimeout
setTimeout(() => {
for (let i = 0; i < 30; i++) {
this.items.push({ name: 'ionic' });
}
loading.dismiss();
}, 3000);
示例5:
}, (error) => {
loading.dismiss();
this.photos = [];
});
示例6: setTimeout
setTimeout(() => {
loading.dismiss();
}, 700)
示例7:
this.auth.loginWithEmail(this.form).subscribe(response => {
console.log(response);
loading.dismiss();
})