Hide a timed ionicLoading


#1

Hi all,

Is there a way to hide a timed ionicLoading?

I want to give my loading a “maximum” duration, by setting the duration parameter.
After some computing, I want to hide that loading with the .hide() method.

Is there a way to do this ?

Thanks for your help.


#2

schedule a $timeout function where you call hide()

$timeout(function() {
  $ionicLoading.hide();
}, <delay_in_ms>);