Categories
Vue Answers

How to reload route in Vue Router?

Spread the love

Sometimes, we want to reload route in Vue Router.

In this article, we’ll look at how to reload route in Vue Router.

How to reload route in Vue Router?

To reload route in Vue Router, we call this.$router.go in our component.

We call it with no argument to do the same thing as windwo.history.go called with no argument, which reloads the page.

Conclusion

To reload route in Vue Router, we call this.$router.go in our component.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *