本文整理匯總了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();
})