diff --git a/aio/content/examples/lazy-loading-ngmodules/src/app/app-routing.module.ts b/aio/content/examples/lazy-loading-ngmodules/src/app/app-routing.module.ts index d0a2549cc7..e8a873cfc9 100644 --- a/aio/content/examples/lazy-loading-ngmodules/src/app/app-routing.module.ts +++ b/aio/content/examples/lazy-loading-ngmodules/src/app/app-routing.module.ts @@ -8,12 +8,12 @@ import { Routes, RouterModule } from '@angular/router'; const routes: Routes = [ { path: 'customers', - loadChildren: () => import('./customers/customers.module').then(mod => mod.CustomersModule) + loadChildren: () => import('./customers/customers.module').then(m => m.CustomersModule) // #enddocregion routes-customers }, { path: 'orders', - loadChildren: () => import('./orders/orders.module').then(mod => mod.OrdersModule) + loadChildren: () => import('./orders/orders.module').then(m => m.OrdersModule) // #enddocregion routes-customers-orders }, { diff --git a/aio/content/examples/ngmodules/src/app/app-routing.module.ts b/aio/content/examples/ngmodules/src/app/app-routing.module.ts index 3ae0d3d346..a6336eadce 100644 --- a/aio/content/examples/ngmodules/src/app/app-routing.module.ts +++ b/aio/content/examples/ngmodules/src/app/app-routing.module.ts @@ -3,8 +3,8 @@ import { Routes, RouterModule } from '@angular/router'; export const routes: Routes = [ { path: '', redirectTo: 'contact', pathMatch: 'full'}, - { path: 'items', loadChildren: () => import('./items/items.module').then(mod => mod.ItemsModule) }, - { path: 'customers', loadChildren: () => import('./customers/customers.module').then(mod => mod.CustomersModule) } + { path: 'items', loadChildren: () => import('./items/items.module').then(m => m.ItemsModule) }, + { path: 'customers', loadChildren: () => import('./customers/customers.module').then(m => m.CustomersModule) } ]; @NgModule({ diff --git a/aio/content/examples/router/src/app/app-routing.module.5.ts b/aio/content/examples/router/src/app/app-routing.module.5.ts index e99a6cb3c4..0bb4abe9b4 100644 --- a/aio/content/examples/router/src/app/app-routing.module.5.ts +++ b/aio/content/examples/router/src/app/app-routing.module.5.ts @@ -20,7 +20,7 @@ const appRoutes: Routes = [ // #docregion admin, admin-1 { path: 'admin', - loadChildren: () => import('./admin/admin.module').then(mod => mod.AdminModule), + loadChildren: () => import('./admin/admin.module').then(m => m.AdminModule), // #enddocregion admin-1 canLoad: [AuthGuard] // #docregion admin-1 diff --git a/aio/content/examples/router/src/app/app-routing.module.6.ts b/aio/content/examples/router/src/app/app-routing.module.6.ts index d060fad168..8cdd93ca84 100644 --- a/aio/content/examples/router/src/app/app-routing.module.6.ts +++ b/aio/content/examples/router/src/app/app-routing.module.6.ts @@ -21,12 +21,12 @@ const appRoutes: Routes = [ }, { path: 'admin', - loadChildren: () => import('./admin/admin.module').then(mod => mod.AdminModule), + loadChildren: () => import('./admin/admin.module').then(m => m.AdminModule), canLoad: [AuthGuard] }, { path: 'crisis-center', - loadChildren: () => import('./crisis-center/crisis-center.module').then(mod => mod.CrisisCenterModule) + loadChildren: () => import('./crisis-center/crisis-center.module').then(m => m.CrisisCenterModule) }, { path: '', redirectTo: '/heroes', pathMatch: 'full' }, { path: '**', component: PageNotFoundComponent } diff --git a/aio/content/examples/router/src/app/app-routing.module.ts b/aio/content/examples/router/src/app/app-routing.module.ts index fc8bcb3b44..4993057d8d 100644 --- a/aio/content/examples/router/src/app/app-routing.module.ts +++ b/aio/content/examples/router/src/app/app-routing.module.ts @@ -17,13 +17,13 @@ const appRoutes: Routes = [ }, { path: 'admin', - loadChildren: () => import('./admin/admin.module').then(mod => mod.AdminModule), + loadChildren: () => import('./admin/admin.module').then(m => m.AdminModule), canLoad: [AuthGuard] }, // #docregion preload-v2 { path: 'crisis-center', - loadChildren: () => import('./crisis-center/crisis-center.module').then(mod => mod.CrisisCenterModule), + loadChildren: () => import('./crisis-center/crisis-center.module').then(m => m.CrisisCenterModule), data: { preload: true } }, // #enddocregion preload-v2 diff --git a/aio/content/examples/testing/src/app/app-routing.module.ts b/aio/content/examples/testing/src/app/app-routing.module.ts index 98c92a1f5a..97fa809ad9 100644 --- a/aio/content/examples/testing/src/app/app-routing.module.ts +++ b/aio/content/examples/testing/src/app/app-routing.module.ts @@ -8,7 +8,7 @@ import { AboutComponent } from './about/about.component'; RouterModule.forRoot([ { path: '', redirectTo: 'dashboard', pathMatch: 'full'}, { path: 'about', component: AboutComponent }, - { path: 'heroes', loadChildren: () => import('./hero/hero.module').then(mod => mod.HeroModule)} + { path: 'heroes', loadChildren: () => import('./hero/hero.module').then(m => m.HeroModule)} ]) ], exports: [ RouterModule ] // re-export the module declarations diff --git a/aio/src/app/custom-elements/element-registry.ts b/aio/src/app/custom-elements/element-registry.ts index b4a7cadd5a..57b12bf5ea 100644 --- a/aio/src/app/custom-elements/element-registry.ts +++ b/aio/src/app/custom-elements/element-registry.ts @@ -7,39 +7,39 @@ import { LoadChildrenCallback } from '@angular/router'; export const ELEMENT_MODULE_LOAD_CALLBACKS_AS_ROUTES = [ { selector: 'aio-announcement-bar', - loadChildren: () => import('./announcement-bar/announcement-bar.module').then(mod => mod.AnnouncementBarModule) + loadChildren: () => import('./announcement-bar/announcement-bar.module').then(m => m.AnnouncementBarModule) }, { selector: 'aio-api-list', - loadChildren: () => import('./api/api-list.module').then(mod => mod.ApiListModule) + loadChildren: () => import('./api/api-list.module').then(m => m.ApiListModule) }, { selector: 'aio-contributor-list', - loadChildren: () => import('./contributor/contributor-list.module').then(mod => mod.ContributorListModule) + loadChildren: () => import('./contributor/contributor-list.module').then(m => m.ContributorListModule) }, { selector: 'aio-file-not-found-search', - loadChildren: () => import('./search/file-not-found-search.module').then(mod => mod.FileNotFoundSearchModule) + loadChildren: () => import('./search/file-not-found-search.module').then(m => m.FileNotFoundSearchModule) }, { selector: 'aio-resource-list', - loadChildren: () => import('./resource/resource-list.module').then(mod => mod.ResourceListModule) + loadChildren: () => import('./resource/resource-list.module').then(m => m.ResourceListModule) }, { selector: 'aio-toc', - loadChildren: () => import('./toc/toc.module').then(mod => mod.TocModule) + loadChildren: () => import('./toc/toc.module').then(m => m.TocModule) }, { selector: 'code-example', - loadChildren: () => import('./code/code-example.module').then(mod => mod.CodeExampleModule) + loadChildren: () => import('./code/code-example.module').then(m => m.CodeExampleModule) }, { selector: 'code-tabs', - loadChildren: () => import('./code/code-tabs.module').then(mod => mod.CodeTabsModule) + loadChildren: () => import('./code/code-tabs.module').then(m => m.CodeTabsModule) }, { selector: 'live-example', - loadChildren: () => import('./live-example/live-example.module').then(mod => mod.LiveExampleModule) + loadChildren: () => import('./live-example/live-example.module').then(m => m.LiveExampleModule) } ];