Problem Statement
Explain lazy loading and why it matters.
Explanation
Lazy loading defers loading feature modules until a route needs them. This reduces the initial bundle size, speeds up first paint, and improves Core Web Vitals. Configure with `loadChildren` and split large features into dedicated modules.
Code Solution
SolutionRead Only
const routes: Routes = [
{ path: 'feature', loadChildren: () => import('./feature/feature.module').then(m => m.FeatureModule) }
];