Skip to content

How to configure nested routing #473

Closed Answered by PindaPixel
zhang1446802857 asked this question in Q&A
Discussion options

You must be logged in to vote

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 a RouterView component, which will automatically render Users/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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #472 on August 10, 2024 17:31.