Doubts about closing the $ ionicLoading.hide ()

-1

My problem is this. I am getting a json from a webservice and doing insert or update in an sqlite database on the device I use $ ionicLoading.show () when clicking the button and it closes when the request with the server ends. Only due to being too much data the processing in the bank continues and I wanted to close the loading only when the data processing in the bank finishes. Would anyone have any idea what to do?

    
asked by anonymous 27.09.2016 / 22:17

1 answer

0

Could you call discharge () loading only on return of the service call?

For example:


 let loading = this.loadingController.create({
        content : "Loading..."
    });
loading.present();

service.getServico(items => { loading.dismiss(); } });

    
28.09.2016 / 16:08