auto generated router is global ? or how import different router folder ? #422
-
in multi page app in this case i can setting separate router logic in every entrypoint import { createMemoryHistory, createRouter } from 'vue-router'
import HomeView from './HomeView.vue'
import AboutView from './AboutView.vue'
const routes = [
{ path: '/', component: HomeView },
{ path: '/about', component: AboutView },
]
const router = createRouter({
history: createMemoryHistory(),
routes,
}) in file based get from global autogenerated file import { routes } from 'vue-router/auto-routes' and i cant setting separate router logic like in non file based routing. |
Beta Was this translation helpful? Give feedback.
Answered by
posva
Jun 15, 2024
Replies: 1 comment 1 reply
-
I imagine you could setup typescript per app in order to scope the types to each app. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
posva
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I imagine you could setup typescript per app in order to scope the types to each app.