Static GitHub Issues

[3234] Pass props to nuxt-child

prev: lodash works perfectly at initial load, however when I refresh I get this error "_ is not defined"
next: How to use auto router?

What problem does this feature solve?

Hi, I have nested routes. In the container I'm doing some actions to fetch api, write in store, create computed objects, etc.. I need them in the container, but I also need them in the children pages. It would be really cool to be able to pass props to children pages to avoid to re-do all this operations on all the nested pages.

Thanks!

What does the proposed changes look like?

// container
<div>
   <UserInfos :user="user">
   <Tabs>
   <nuxt-child :user="user"/>
</div>
// nested
props: {
   user : {}
},
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This feature request is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c6920">#c6920</a>)</em></sub></div>