Answer the question
In order to leave comments, you need to log in
Why does vue-router remove the component on transition?
When moving from one component to another, vue removes the previous component. Is this normal or can I leave it somehow so that it does not render on a new one?
const router = new Router({
routes: [
{
path: '/',
name: 'MainPage',
component: MainPage
},
{
path: '/contacts',
name: 'ContactsPage',
component: ContactsPage
}
]
})
<router-view></router-view>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question