How can I add router-view for accessing child components or pages #291
Unanswered
sujit-baniya
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, this template uses https://github.com/hannoeru/vite-plugin-pages for file based routing. I created a sub-route
[id].vue
On the parent component, I added following code
So that I could visit nested route inside the
router-view
but instead it's opened on main router-view. Please suggest, in vue 3 using above package, how can I configure so that I could visit[id].vue
on parent component (and not main app)Beta Was this translation helpful? Give feedback.
All reactions