I want to use the dashboard-default.vue layout inside all the dashboard pages.
In the dashboard-default.vue, there's 2 named slots for header and content.
How do i use these slots inside the dashboard pages?
I tried this pages/dashboard.vue
<template>
<div>
<NuxtLayout name="dashboard-defualt">
<NuxtPage/>
</NuxtLayout>
</div>
</template>
and inside the pages/dashboard/index.vue:
<template> //error here because you can't use template inside template i think
<div>
<template #header>
Page title
</template>
<template #content>
dfsdf
</template>
</div>
</template>
This is pages/dashboard.vue page:
<template>
<div>
<NuxtLayout name="dashboard-defualt">
<NuxtPage/>
</NuxtLayout>
</div>
</template>