0👍
With the OptionB the child component should be inside the parent path’s component with <router-view/>
.
So the OptionB is wrong.
What you want is a default child component:
import {RouterView} from 'vue-router';
const routes = [
{
path: '/users',
component: RouterView,
children: [
{
path: '',
component: User
},
{
path: 'user-reference',
component: UserReference
}
]
}
];
- [Vuejs]-Vue cli build picks errors from bootstrap-vue-next
- [Vuejs]-How to call a method every single time the field loses focus in vue.js
Source:stackexchange.com