How to configure nested routing #473
-
How to configure nested routing |
Beta Was this translation helpful? Give feedback.
Answered by
PindaPixel
Aug 12, 2024
Replies: 1 comment
-
The very basics can be found here https://uvr.esm.is/guide/file-based-routing.html#nested-routes Customizing the behaviour is possible by reading the docs carefully. Generally I would advise to just stick with default behaviour to avoid unneeded complexity and added points of failure, especially since it is difficult to unit test such custom configuration. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
posva
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The very basics can be found here https://uvr.esm.is/guide/file-based-routing.html#nested-routes
In the mentioned example, your
Users.vue
must render aRouterView
component, which will automatically renderUsers/index.vue
if it exists.Customizing the behaviour is possible by reading the docs carefully. Generally I would advise to just stick with default behaviour to avoid unneeded complexity and added points of failure, especially since it is difficult to unit test such custom configuration.