Do we have router.reload in vue-router?

this.$router.go() does exactly this; if no arguments are specified, the router navigates to current location, refreshing the page. note: current implementation of router and its history components don’t mark the param as optional, but IMVHO it’s either a bug or an omission on Evan You’s part, since the spec explicitly allows it. I’ve filed an … Read more

Button that refreshes the page on click

Use onClick with window.location.reload(), i.e. : <button onClick=”window.location.reload();”>Refresh Page</button> Or history.go(0), i.e.: <button onClick=”history.go(0);”>Refresh Page</button> Or window.location.href=window.location.href for ‘full‘ reload, i.e.: <button onClick=”window.location.href=window.location.href”>Refresh Page</button> The Button element – developer.mozilla.org

Can you force Vue.js to reload/re-render?

Try this magic spell: vm.$forceUpdate(); //or in file components this.$forceUpdate(); No need to create any hanging vars 🙂 Update: I found this solution when I only started working with VueJS. However further exploration proved this approach as a crutch. As far as I recall, in a while I got rid of it simply putting all … Read more