Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for inheriting attrs in router-link tag #1678

Closed
miljan-aleksic opened this issue Aug 13, 2017 · 3 comments
Closed

Support for inheriting attrs in router-link tag #1678

miljan-aleksic opened this issue Aug 13, 2017 · 3 comments

Comments

@miljan-aleksic
Copy link
Contributor

What problem does this feature solve?

router-link can render a specified tag which could happen to be a component. This component could have its own props but currently there is no way to pass them down. Eg.

// the primary prop will not be passed down to my-button
<router-link tag="my-button" primary></router-link>

Unless I am missing something I would like to request a way to solve this situation.

@yyx990803
Copy link
Member

Implemented in 2.8+

@maksnester
Copy link

It doesn't work in 3.0.1. Component seems to be rendered but props isn't passed to it. Props are applied to target html element, but it's not the same as pass it to component before render.

@miljan-aleksic
Copy link
Contributor Author

It should be definitely solved once #2029 is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants