I'm attempting to use :to to direct the button to another page, but it's not working right now. As a test, I'm currently trying to direct it to the existing /learn page.
Here is my code:
<b-navbar-item tag="div">
<div class="buttons">
<a class="button is-primary"
v-for="item in menuItems"
:key="item.title"
:to="item.link">
{{item.title}}
</a>
</div>
</b-navbar-item>
export default {
data() {
return {
menuItems: [
{ title: 'Login', link: '/learn'},
{ title: 'Sign up', link: '/learn'},
{ title: 'Logout', link: '/learn'},
]
}