mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +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>
|
||||
<div>
|
||||
<TheHeader />
|
||||
<Nuxt />
|
||||
<slot />
|
||||
<TheFooter />
|
||||
</div>
|
||||
</template>
|
||||
@ -55,7 +55,7 @@ To dynamically import a component (also known as lazy-loading a component) all y
|
||||
<template>
|
||||
<div>
|
||||
<TheHeader />
|
||||
<Nuxt />
|
||||
<slot />
|
||||
<LazyTheFooter />
|
||||
</div>
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user