Nuxt/examples/with-layouts/layouts/custom.vue

19 lines
261 B
Vue
Raw Normal View History

2021-06-30 16:32:22 +00:00
<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>