Standalone Routing
Introduction
Section titled “Introduction”With standalone components, routing is simpler. Use provideRouter() and loadComponent().
Example
Section titled “Example”bootstrapApplication(AppComponent, { providers: [provideRouter(routes)]});
// Lazy load standalone componentsconst routes: Routes = [{ path: 'products', loadComponent: () => import('./products.component').then(m => m.ProductsComponent)}];Summary
Section titled “Summary”Standalone routing eliminates module-based lazy loading complexity.”