Nuxt/examples/with-keep-alive
Clark Du b11e9c0e51
feat: upgrade eslint to 5.x (#3494)
- [ ] babel-eslint https://github.com/babel/babel-eslint/issues/664
- [x] eslint-config-standard-jsx https://github.com/standard/eslint-config-standard-jsx/issues/32
- [x] eslint-config-standard to be stable release https://github.com/standard/eslint-config-standard/issues/123
- [x] eslint-plugin-html
- [x] eslint-plugin-import
- [x] eslint-plugin-jest
- [x] eslint-plugin-node
- [x] eslint-plugin-promise
- [x] eslint-plugin-standard https://github.com/standard/eslint-plugin-standard/issues/29
- [x] eslint-plugin-vue https://github.com/vuejs/eslint-plugin-vue/pull/504
- [x] eslint-plugin-react https://github.com/yannickcr/eslint-plugin-react/releases/tag/v7.10.0
2018-08-31 21:34:12 +01:00
..
layouts feat: upgrade eslint to 5.x (#3494) 2018-08-31 21:34:12 +01:00
pages example: Add keep-alive example 2018-01-17 09:46:48 +01:00
package.json refactor: rename examples 2018-03-19 10:41:46 +08:00
README.md Update README.md 2018-01-17 09:52:58 +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>

Screenshot:

screen shot 2018-01-17 at 09 42 47