mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-16 19:04:48 +00:00
19 lines
261 B
Vue
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>
|