in Vue.JS by

How can you redirect to another page in Vue.js?

► Click here to show 1 Answer

0 votes

If you are using vue-router, you should use router.go(path) to navigate to any particular route. The router can be accessed from within a component using this.$routerrouter.go() changed in VueJS 2.0. You can use router.push({ name: "yourroutename"})or just router.push("yourroutename") now to redirect.

Vue JS
Learn More with Madanswer

Related questions

0 votes
asked Jan 9, 2020 in Vue.JS by GeorgeBell