Hello I am relatively new to VueJS and have a question to conditional rendering while using the Cue Router.
i have my routes the as the following set up:
const routes = [
{
path: '/',
component: () => import('layouts/Layout.vue'),
children: [
{ path: '/info', component: () => import('pages/Info.vue') },
{ path: '/order', component: () => import('pages/Order.vue') },
{ path: '/setup', component: () => import('pages/Mapping')}
]
}
]
The layout basically is just for the Header and NavBar on the left side.
Now I want to be able to change the header and the NavBar to invisible from the setup Page by conditional rendering them in the layout with v-if
.
And I don't know how to get access from Setup.vue to the Layout.vue.
This is probably a stupid question but I just don't find a solution.
Thanks for your time :)