mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
docs: use slot component in components example (#2027)
This commit is contained in:
parent
ca8b97d69b
commit
446cec7234
@ -20,7 +20,7 @@ Nuxt automatically imports any components in your `components/` directory (along
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<TheHeader />
|
<TheHeader />
|
||||||
<Nuxt />
|
<slot />
|
||||||
<TheFooter />
|
<TheFooter />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -55,7 +55,7 @@ To dynamically import a component (also known as lazy-loading a component) all y
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<TheHeader />
|
<TheHeader />
|
||||||
<Nuxt />
|
<slot />
|
||||||
<LazyTheFooter />
|
<LazyTheFooter />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user