Nuxt/examples/with-keep-alive/README.md

12 lines
226 B
Markdown
Raw Normal View History

2018-01-17 08:48:51 +00:00
# `<keep-alive>` with Nuxt.js
2018-01-17 08:46:48 +00:00
Introduced in v1.2.0, you can add the `keep-alive` prop to `<nuxt/>` or `<nuxt-child/>` to "keep alive" the pages.
`layouts/default.vue`:
```vue
<template>
<nuxt keep-alive/>
</template>
```