Suggestion: Add a hideDelay property for $ionicLoading & ionic.views.Loading
Motivation
Most cases we use the Loading indicator while loading content from a webservice and want to block the the user from doing any action while the data is still loading and the view isn't rendered yet. So as angular take some time to render the view after receiving the data (the promise has been resolved) most of the time we hide the loading view inside the promise callback which hide the loading and the view is being rendered, so I suggest of adding a hideDelay property to give us the option to delay the hiding of the loading view until the view has completely rendered.
Like the showDelay property, it could be added to the config object of the $ionicLoading.show({}) method and it would be nice if you provide an option to override the value when using the hide method as $ionicLoading.hide(300).
I am implementing it by wrapping the loading.hide() method with a $timeout but i thought it would be nice to have it in core.
Perhaps we should add something like https://github.com/ajoslin/angular-promise-tracker under the hood. @adamdbradley thoughts?
Added duration option via cb1a5f62285fe5939274bdda9db169af69eddf35, see nightly docs for $ionicLoading. http://ionicframework.com/docs/nightly/api/service/$ionicLoading
Would be nice to have a hideDelay or minShow option such that once the show has been called, it shows for a minimum amount of time. The goal is to reduce flicker. For example, if I show before calling http and hide when it returns, if the http only takes < 1s, it's a bad ux to show ionicLoading for < 1s too.
+1 For @techntrails suggestion
+1 For @techntrails suggestion
+1 For @techntrails suggestion
Bun
http://ongoo.cz/forex-dollar
24.03.2015, 15:38, "Bun suwanparsert" [email protected]:+1 For suggestion
—Reply to this email directly or .
chillyprig
http://thefitfactory.net/android
24.03.2015, 15:37, "chillyprig" [email protected]:+1 For suggestion
—Reply to this email directly or .
+1 For @techntrails suggestion
+1 For @techntrails suggestion
Delay is a nice option but once I do display it, after a few hundred milliseconds or so, I don't want it to get hidden 50-100 milliseconds after that.
+1
+1