[Vuejs]-Laravel/Vue โ€“ Get list of routes from backend

-1๐Ÿ‘

export default new VueRouter({
    routes : [
        {
          path : '/client-1',
          name : "Client Feature 1" 
          // component : ClientFeature1, //asis
          component: () => import(/* webpackChunkName: 'ClientFeature1' */'./components/ClientFeature1')
         },
         // ...
    ],
    mode: 'hash'
});

Leave a comment