@@ -74,27 +74,28 @@ <h3>File</h3>
7474 < div class ="tab-pane fade tab-source-code " id ="c-source ">
7575 < pre class ="line-numbers compodoc-sourcecode "> < code class ="language-typescript "> import { NgModule } from '@angular/core';
7676import { Routes, RouterModule } from '@angular/router';
77+ import { AboutModule } from './about';
7778
7879import { APP_ENUMS } from './app-routes.enum';
7980
8081enum APP_ENUM {
81- home = 'home'
82+ home = 'home',
8283}
8384
8485export const APP_ROUTES: Routes = [
8586 {
8687 path: 'about',
87- loadChildren: () =>
88- "import('./about/about.module').then(m => m.AboutModule)"
88+ loadChildren: (): Promise<AboutModule> =>
89+ "import('./about/about.module').then((m) => m.AboutModule)",
8990 },
9091 //{ path: 'about', loadChildren: './about/about.module#AboutModule' },
9192 { path: '', redirectTo: 'home', pathMatch: 'full' },
92- { path: '**', redirectTo: 'home', pathMatch: 'full' }
93+ { path: '**', redirectTo: 'home', pathMatch: 'full' },
9394];
9495
9596@NgModule({
9697 imports: [RouterModule.forRoot(APP_ROUTES)],
97- exports: [RouterModule]
98+ exports: [RouterModule],
9899})
99100export class AppRoutingModule {}
100101</ code > </ pre >
0 commit comments