Replies: 2 comments 1 reply
-
My understanding is that different layouts are used to route the root, and each layout should have v-app. Example: My site have the landing page and dashboard, so it need two layout. https://github.com/AGDholo/shock/tree/master/src/components/root |
Beta Was this translation helpful? Give feedback.
-
@AGDholo, thanks for your example, it's similar to the solutions I found. But I was thinking I'm doing something wrong, because switching layouts will cause some animation in Here is a small demo that illustrates the effect: https://github.com/oburlaca/layout-test Notice the keep-alive in App.vue. Here is a screencast, notice the scrolling of the list when the layout is switched: If I remove So I narrow my initial question to "How to get rid of the animation when switching layouts?". |
Beta Was this translation helpful? Give feedback.
-
I'm building a SPA, it has a Login page (just a login button) and several APP pages that has AppBar, BottomNav.
What the best way to have multiple layouts in a SPA?
From the documentation:
But then it says:
I'm a bit confused: I need to include v-app in each layout file, but at the same time it should be rendered ONCE.
Are there examples how to build a multiple layout SPA using Vuetify?
The docs about Layouts talks about single layout app.
Beta Was this translation helpful? Give feedback.
All reactions