[Vuejs]-Vue router – passing in a prop Array into a router view with id

0πŸ‘

If you want to set props as object type, you can set you object in props instead of true. For more information:
https://router.vuejs.org/guide/essentials/passing-props.html

0πŸ‘

For anyone who stumbles upon this question of mine – I dont think what I was trying to do is possible, or if it is, it probably isnt the right way to go about it – I instead ended up using the Vuex store functionality and had my object in there where I can access it from both places without having to specifically pass it in.

Leave a comment