I am developing an ionic app where I load content dynamically on click event. I am using
$ionicLoading.show() before hitting the API and
$ionicLoading.hide() after getting the response.
I wish to retain loading atleast for 3 seconds even if data is completely loaded for some undefined reasons without using
$timeout. I tried duration in
$ionicLoading.show() but that does’nt help. Is this possible, if so how can I achieve that.