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.
Yeah, because duration is the duration, if you do not call hide… so do not call hide or pass a parameter/set a variable to not hide the loading overlay after a request