Closed ggedde closed 6 years ago
beforeRouteEnter doesn't have access to 'this'
I was hoping for Vue.$Progress.start(), but that doesn't work. Anyway to access $Progress within beforeRouteEnter inside a component? Anyway to access $Progress from Vue?
Ex.
beforeRouteEnter (to, from, next) { Vue.$Progress.start() setTimeout(() => { Vue.$Progress.finish() next() }, 3000) },
beforeRouteEnter (to, from, next) { Vue.prototype.$Progress.start() setTimeout(() => { Vue.prototype.$Progress.finish() next() }, 3000) },
Perfect, Thanks
beforeRouteEnter doesn't have access to 'this'
I was hoping for Vue.$Progress.start(), but that doesn't work. Anyway to access $Progress within beforeRouteEnter inside a component? Anyway to access $Progress from Vue?
Ex.