Nuxt/examples/with-keep-alive
Sébastien Chopin 1319f9ae15
Update README.md
2018-01-17 09:48:51 +01:00
..
layouts example: Add keep-alive example 2018-01-17 09:46:48 +01:00
pages example: Add keep-alive example 2018-01-17 09:46:48 +01:00
package.json example: Add keep-alive example 2018-01-17 09:46:48 +01:00
README.md Update README.md 2018-01-17 09:48:51 +01:00

<keep-alive> with Nuxt.js

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:

<template>
  <nuxt keep-alive/>
</template>