Skip to content

Passing props and slots to named views (multiple components) #2215

Discussion options

You must be logged in to vote

Using the props: true setting it only required if you want to pass props from the router itself, e.g. based on the URL. If you need to pass props from the parent component then you don't need that setting.

You should just need to use :foo="someVariable" on the <component> tag, much like you have in one of the code snippets you shared. I don't see anything wrong with that code that would prevent it from working.

I've put together a Playground based on your code to demonstrate it working correctly:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@WebMechanic
Comment options

Answer selected by WebMechanic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants