Complete the code to lazy load a standalone component in Angular routing.
const routes = [{ path: 'dashboard', loadComponent: () => import('./dashboard.component').then(m => m.[1]) }];The loadComponent function should return the standalone component class, here DashboardComponent.
Complete the code to define a route that lazy loads a standalone component with a path 'profile'.
const routes = [{ path: 'profile', loadComponent: () => import('./profile.component').then(m => m.[1]) }];The lazy loaded component must be the standalone component class, here ProfileComponent.
Fix the error in the lazy loading code by completing the blank.
const routes = [{ path: 'settings', loadComponent: () => import('./settings.component').then(m => m.[1]) }];The lazy loading expects the standalone component class, which is SettingsComponent.
Fill both blanks to create a route that lazy loads a standalone component and sets a title.
const routes = [{ path: 'help', loadComponent: () => import('./help.component').then(m => m.[1]), data: { title: '[2]' } }];The loadComponent must be the standalone component class HelpComponent, and the title is a string like 'Help Page'.
Fill all three blanks to lazy load a standalone component, set a page title, and add a route guard.
const routes = [{ path: 'admin', loadComponent: () => import('./admin.component').then(m => m.[1]), data: { title: '[2]' }, canActivate: [[3]] }];The lazy loaded component is AdminComponent, the title is a string like 'AdminModule' (used here as a title for variety), and the guard is AdminGuard to protect the route.