Answer the question
In order to leave comments, you need to log in
How to set menu link to section id in Vue JS?
Hello. There is a landing menu, the links of which lead to the desired block with page scrolling. How to correctly display links?
<ul class="menu-list">
<li><a class="menu-list-item" href="#about">About Me</a></li>
<li><a class="menu-list-item" href="#users">Users</a></li>
<li><a class="menu-list-item" href="#register">Sign Up</a></li>
</ul>
<li><router-link class="menu-list-item" to="#about">About Me</router-link></li>
{
path: '/about',
name: 'About',
component: () => import('../components/About.vue')
},
{
path: '/users',
name: 'Users',
component: () => import('../components/Users.vue')
},
{
path: '/register',
name: 'Register',
component: () => import('../components/Register.vue')
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question