Build Mobile Apps with Ionic 4 and Firebase by Fu Cheng

Build Mobile Apps with Ionic 4 and Firebase by Fu Cheng

Author:Fu Cheng
Language: eng
Format: epub
ISBN: 9781484237755
Publisher: Apress


constructor(private itemService: ItemService, private loadingCtrl: LoadingController) { }

ngOnInit() {

this.subscription = this.itemService.get().subscribe(items => {

if (items.loading) {

this.showLoading();

return;

}

this.hideLoading();

// code omitted

});

this.doLoad(true);

}

// code omitted

private showLoading(): Promise<void> {

return this.hideLoading().then(() => {

return this.loadingCtrl.create({

message: 'Loading...',

}).then(loading => {

this.loading = loading;

return this.loading.present();

});

});

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.