Nuxt/examples/with-layouts/layouts/custom.vue
2021-06-30 18:32:22 +02:00

19 lines
261 B
Vue

<template>
<div>
<strong>Custom layout</strong>
Header slot:
<slot name="header">
Default slot content
</slot>
<slot />
</div>
</template>
<script>
export default {
created () {
console.log('layout created')
}
}
</script>