You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to set the layout from a nested page and it's not working for me. What I would like to do is use a different layout in pages under the same folder. Layouts only work if its declared in the first file in the pages directory.
This Works ,but both my nested routes get the same layout.
-[src]
-- [pages]
--- profiles.vue [Layout 1]
--- [profiles]
---- view.vue
---- create.vue
Not Working
-[src]
-- [pages]
--- [profiles]
---- view.vue [Layout 1]
---- create.vue [Layout 2]
Am I missing something here or is this intended behavior?
The text was updated successfully, but these errors were encountered:
Same for me - I guess that in current implementation only root level pages can have layout defined.
Would be nice to have it improved to allow using different layouts for nested routes.
I am trying to set the layout from a nested page and it's not working for me. What I would like to do is use a different layout in pages under the same folder. Layouts only work if its declared in the first file in the pages directory.
This Works ,but both my nested routes get the same layout.
-[src]
-- [pages]
--- profiles.vue [Layout 1]
--- [profiles]
---- view.vue
---- create.vue
Not Working
-[src]
-- [pages]
--- [profiles]
---- view.vue [Layout 1]
---- create.vue [Layout 2]
Am I missing something here or is this intended behavior?
The text was updated successfully, but these errors were encountered: