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.