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
RouterLink is missing setRoute(Class<? extends Component> navigationTarget) #6540
Comments
Seems like we have that one constructor that uses the internal |
Acceptance Criteria
Please read https://github.com/vaadin/flow/blob/master/CONTRIBUTING.md before contributing. |
Do we need a setRoute(navigationTarget, parameter) too? |
@torok-peter I think it will be useful too and consistent with the constructors. |
When you create a RouterLink, you can set the navigation target using a class. If you create an empty RouterLink, there is no longer any way to set the navigation target using a class. For some reason you also need a
Router
reference in this case but not in the first caseThe text was updated successfully, but these errors were encountered: