which is better, vue component switching or route hopping? Is the performance and speed the same? what are the differences?
if you have two tab, usage components, you can use < component VmurbindVista is = "currentTabComponent" > < / component >
routing
routes: [
{
path: "page1",
component: page1
},
{
path: "page2",
component: page2
}
]
nested routes use
routes: [
{ path: "/page/:id", component: page,
children: [
{
path: "page1",
component: page1
},
{
path: "page2",
component: page2
}
]
}
]