vue router lazy-loaded vs code example
Example: Lazy Loading Routes vue
routes: [
{
path: '/vue_films-app',
name: 'Movies',
component: Movies,
},
{
path: '/vue_films-app/details/:id',
name: 'Details',
component: () => import('../views/Details.vue'),
},
],