I have a main layout component ( who is composed by a fixed top header and a left side menu with multiple links created by router-link component ) and a "dynamic" layout component who is the hearth of the page.
I would like this to change the center of my site by routing on different components according to the clicked link on the left menu.
In order to do this, I have placed the router-view in my App.vue who is the higher level of Vue component in my app, like in the following code :
<template>
<div id="app">
<layout>
<router-view/>
</layout>
</div>
</template>
There is my main layout component, who contains the header and the left menu, this is the fixed part of my website :
<template>
<v-app>
<loader></loader>
<v-layout row wrap>
<v-flex xs12>
<stickyHeader></stickyHeader>
</v-flex>
<v-flex xs2>
<sideNavMenu></sideNavMenu>
</v-flex>
</v-layout>
</v-app>
</template>
My sideNavMenu component contains multiple router-link components like this
<router-link to="/home">Accueil</router-link>
that I'm catching in my router, to attach a specific Url to a vue component
export default new Router({
routes: [
{
path: '/home',
name: 'home',
component: home
}
]
})
But it doesn't work, and I don't understand why. Hence, I need help :)