vuejs / router

🚦 The official router for Vue.js
https://router.vuejs.org/
MIT License
3.91k stars 1.19k forks source link

Added example for passing custom props #1956

Closed bjornharrtell closed 12 months ago

bjornharrtell commented 1 year ago

I ended using the method described at https://github.com/vuejs/router/pull/1375 which was never merged into docs.

I think it's useful for cases where you derive some state in a parent (that might be reactive) that nested route components are dependent on.

I hope it's a supported case and that it deserves a more prominent place in the docs.

Thanks to @MilosPaunovic for the original snippet.

netlify[bot] commented 1 year ago

Deploy Preview for vue-router ready!

Name Link
Latest commit f8a9bd152a4c2bea2755e59a51404148027fb259
Latest deploy log https://app.netlify.com/sites/vue-router/deploys/64d66f8c8a74f600080ae277
Deploy Preview https://deploy-preview-1956--vue-router.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

posva commented 12 months ago

Thanks I had to merge locally