Complete the code to import the Home component lazily.
const Home = () => import([1]);
Lazy loading in Vue routes uses dynamic import with the relative path to the component file.
Complete the code to define a lazy loaded route for About component.
const routes = [{ path: '/about', component: [1] }];Lazy loaded routes use a function returning an import promise for the component.
Fix the error in the lazy loading syntax for the Contact component.
const Contact = [1];Lazy loading requires a function returning the import promise, not direct import call.
Fill both blanks to create a lazy loaded route with name 'Profile' and path '/profile'.
const routes = [{ path: [1], name: [2], component: () => import('./components/Profile.vue') }];The path should be '/profile' as a string and the route name 'Profile' as a string.
Fill all three blanks to create a lazy loaded route with path '/dashboard', name 'Dashboard', and component imported from './views/Dashboard.vue'.
const routes = [{ path: [1], name: [2], component: () => import([3]) }];Use the exact path string '/dashboard', name 'Dashboard', and import path './views/Dashboard.vue'.