-
Notifications
You must be signed in to change notification settings - Fork 9
Redirect or Default router-view? #29
Comments
also I seem to miss understand the interface to the nested routes. The extra folder per nesting seems unnecessary unless I'm missing something. The folder structure should imply the use of router-view. index[dashboard].vue So / would point at /dashboard/users which would be the nesting of Dashboard>. Am I making any sense? |
Hey @delaneyj, I'm not sure that I'm following, but hopefully I can try to make things clearer for you. Let's say you have the following folder structure:
Voie will map these files to routes like so:
The thing to note here is that even though these routes are within the same directory they do not have a common parent route, and so the only instance of If you want these pages to have a common parent route, then you need to add a
Voie will then map the routes like so:
This time the |
Is the
So if i'd want to access the |
I'm currently adding extra routes like this
But for nested rounts it gets more complicated.
Say you have
/dashboard
with user/events as subfolders. Would it be possible to have something likeindex[user].vue'
so the dashboardsrouter-view
get set to the right default sub route?The text was updated successfully, but these errors were encountered: