DEV Community

Discussion on: 😲VueJS pages with Dynamic layouts! Problems and a solution!

Collapse
 
jjstanton profile image
jjstanton

Thank you for this solution! It is very neat and elegant. Has made my app a lot smoother.

I'm using Vue 3 along with router 4.0.0 for this and got it to work flawlessly when all the routes are in a single file but when I break the routes into separate files I am unable to get child routes to work with your layout method. Have you encountered this before?