Skip to content

Commit

Permalink
Lazy-load examples route using module
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuzzy3 committed Feb 7, 2025
1 parent 34944bf commit 13ac3c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/cookbook/src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { HomeComponent } from './home/home.component';
import { IntroComponent } from './intro/intro.component';
import { ExtensionsLandingPageComponent } from './extensions/extensions-landing-page.component';
import { LocalizationComponent } from './localization/localization.component';
import { ExamplesRoutingModule } from './examples/examples-routing.module';

export const routes: Routes = [
{
Expand Down Expand Up @@ -69,6 +70,7 @@ export const routes: Routes = [
},
{
path: 'examples',
loadChildren: () => import('./examples/examples.routes').then((m) => m.EXAMPLE_ROUTES),
loadChildren: () =>
import('./examples/examples-routing.module').then((m) => m.ExamplesRoutingModule),
},
];

0 comments on commit 13ac3c6

Please sign in to comment.