[Vuejs]-Vuejs Routing Issue

0👍

You can use a router link:

<!-- literal string -->
<router-link to="/">go to Home World</router-link>

<!-- renders to -->
<a href="/">go to Home World</a>

If you outline a route in your router and then create your typical anchor tags as router links it will allow you to move routes using the router.

https://router.vuejs.org/en/api/router-link.html

Leave a comment