Loading delay not delaying
-
Hi. Just wondering if I am doing something wrong,or if I am missing something that is not in the documentation. The delay property for the loading show method is not working at all.
methods:{ gotoHome(){ this.$q.loading.show({ delay: 1000 }) this.$q.loading.hide() this.$router.push({name:'Index'}) } }
It is supposed to delay/show the loading animation for 1000ms. What am I missing? Can’t find anything about this in the documentation or in the forum.
-
Hi, You’re immediately hiding it… so there’s no time for the delay to take place.
-
@rstoenescu thank you for your reply. My bad. I didnt understand it well. Just thought the delay property would create a sort of timeout effect even when the hide method is called. Now I understand how it works. Regards.