Vue.js – Enclosing a router-link tag in a button in vuejs

buttonvue-routervue.js

Can I wrap or enclose a router-link tag in a button tag?

When I press the button, I want it to route me to the desired page.

Best Solution

You can use tag prop.

<router-link to="/foo" tag="button">foo</router-link>