Skip to content

Commit 4196c66

Browse files
committed
feat(aot): provide an example of non-lazy loading that passes AoT compilation (commented by default)
1 parent c989672 commit 4196c66

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/app-routing.module.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ export const routes: Routes = [
1515
{
1616
path: 'bundled',
1717
loadChildren: loadBundledModule
18+
// Comment loadChildren above and uncomment the line below to get non lazy loading working with AoT
19+
// Do not delete / comment the `loadBundledModule` declaration or the module will be lazy loaded
20+
// loadChildren: './bundled/bundled.module#BundledModule'
1821
},
1922
{
2023
path: 'lazy',

0 commit comments

Comments
 (0)