mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-13 09:33:54 +00:00
d603b0d418
Adds the ability to configure the props of keep-alive on nuxt-child. ## Types of changes - [ ] Bug fix (a non-breaking change which fixes an issue) - [x] New feature (a non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Description In development, I found it impossible to configure the props of keep-alive when using nuxt-child, like ```exclude```. This PR adds a special prop to nuxt-child named keepAliveProps to allow developer to configure it. ```html <template> <div> <nuxt-child keep-alive :keep-alive-props="{ exclude: ['modal'] }"> </div> </template> ``` ## Checklist: - [x] My change requires a change to the documentation. - [x] I have updated the documentation accordingly. (PR: https://github.com/nuxt/docs/pull/836) - [ ] I have added tests to cover my changes (if not applicable, please state why) - [x] All new and existing tests are passing. |
||
---|---|---|
.. | ||
components | ||
layouts | ||
pages | ||
views | ||
App.js | ||
client.js | ||
empty.js | ||
index.js | ||
middleware.js | ||
router.js | ||
server.js | ||
store.js | ||
utils.js |