我正在尝试以这种方式使用最近添加的 LoadingController:
let loading=this.load.create({
content: "Connexion au serveur Migal en cours..."
});
loading.present();
this.http.get(this.urlCheckerForm.value.migalUrl+'/action/MobileApp/URLChecker')
.map(res => res.json())
.subscribe(
data => this.newConnection(data,loading),
error => this.catchURLError(loading));
loading.dismiss();
基本上,我只想在我的页面加载之前显示我的加载弹出窗口,然后将其关闭。
我遵循了Ionic 2 Documentation上的示例,但它似乎根本不起作用......
编辑:加载组件甚至没有出现。