mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-18 14:41:25 +00:00
16 lines
377 B
Markdown
16 lines
377 B
Markdown
# `<keep-alive>` with Nuxt.js
|
|
|
|
Introduced in v1.2.0, you can add the `keep-alive` prop to `<Nuxt/>` or `<NuxtChild/>` to "keep alive" the pages.
|
|
|
|
`layouts/default.vue`:
|
|
|
|
```vue
|
|
<template>
|
|
<Nuxt keep-alive/>
|
|
</template>
|
|
```
|
|
|
|
Screenshot:
|
|
|
|

|