Skip to content

Please improve the README for multi-paramter routing #66

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

Open
PenguinAndy opened this issue Nov 21, 2024 · 0 comments
Open

Please improve the README for multi-paramter routing #66

PenguinAndy opened this issue Nov 21, 2024 · 0 comments

Comments

@PenguinAndy
Copy link

In the README, it mentions that you can pass multiple parameters in the route using colons (:), but there are no examples provided for implementation. After multiple attempts, I found the implementation works as follows:

  • Declare the route:
Route("test/:paramA/:paramB") { route in 
    // todo - 
}
  • Use it as follows:
NavLink(to: "test/aaa/bbb") { 
    // todo -
}
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

No branches or pull requests

1 participant