docs: use slot component in components example (#2027)

This commit is contained in:
Umesh Ganapathy 2021-11-19 05:36:25 -06:00 committed by GitHub
parent ca8b97d69b
commit 446cec7234
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>