Skip to content

Commit 13ac3c6

Browse files
committed
Lazy-load examples route using module
1 parent 34944bf commit 13ac3c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/cookbook/src/app/app.routes.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { HomeComponent } from './home/home.component';
66
import { IntroComponent } from './intro/intro.component';
77
import { ExtensionsLandingPageComponent } from './extensions/extensions-landing-page.component';
88
import { LocalizationComponent } from './localization/localization.component';
9+
import { ExamplesRoutingModule } from './examples/examples-routing.module';
910

1011
export const routes: Routes = [
1112
{
@@ -69,6 +70,7 @@ export const routes: Routes = [
6970
},
7071
{
7172
path: 'examples',
72-
loadChildren: () => import('./examples/examples.routes').then((m) => m.EXAMPLE_ROUTES),
73+
loadChildren: () =>
74+
import('./examples/examples-routing.module').then((m) => m.ExamplesRoutingModule),
7375
},
7476
];

0 commit comments

Comments
 (0)