[Vuejs]-Vuejs router children show

0👍

When you do not open children in parent component, then just do not use children:

const routes = [
    {
        path: '/news',
        name: 'news',
        component: News        
    },
    {
        path: '/news/:id',
        name: 'newsitem',
        component: Newsitem        
    },
];

Leave a comment