Problem Statement
How do you lazy load a feature module and why?
Explanation
Lazy loading splits the app into chunks and loads a feature only when its route is visited, improving first paint and TTI. Use `loadChildren` with a dynamic import in your route config; the CLI creates separate bundles automatically.
Code Solution
SolutionRead Only
const routes: Routes = [
{ path: 'admin', loadChildren: () => import('./admin/admin.module').then(m => m.AdminModule) }
];