From 67ad9468d35fee9e0b0f829d18d01eafda251f1e Mon Sep 17 00:00:00 2001 From: Brandon Roberts Date: Sat, 6 Oct 2018 15:02:14 -0500 Subject: [PATCH] docs: fix broken lazy loading examples with Angular CLI RC upgrade (#25892) PR Close #25892 --- .../lazy-loading-ngmodules/src/app/app-routing.module.ts | 4 ++-- .../examples/ngmodule-faq/src/app/app-routing.module.3.ts | 4 ++-- .../examples/ngmodule-faq/src/app/app-routing.module.ts | 4 ++-- aio/content/examples/ngmodules/src/app/app-routing.module.ts | 4 ++-- aio/content/examples/testing/src/app/app-routing.module.ts | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) 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 dc2f71be29..073bf73dd6 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,11 +8,11 @@ import { Routes, RouterModule } from '@angular/router'; const routes: Routes = [ { path: 'customers', - loadChildren: 'app/customers/customers.module#CustomersModule' + loadChildren: './customers/customers.module#CustomersModule' }, { path: 'orders', - loadChildren: 'app/orders/orders.module#OrdersModule' + loadChildren: './orders/orders.module#OrdersModule' }, { path: '', diff --git a/aio/content/examples/ngmodule-faq/src/app/app-routing.module.3.ts b/aio/content/examples/ngmodule-faq/src/app/app-routing.module.3.ts index f3c68f5050..573e30ed11 100644 --- a/aio/content/examples/ngmodule-faq/src/app/app-routing.module.3.ts +++ b/aio/content/examples/ngmodule-faq/src/app/app-routing.module.3.ts @@ -5,8 +5,8 @@ import { ContactModule } from './contact/contact.module.3'; const routes: Routes = [ { path: '', redirectTo: 'contact', pathMatch: 'full'}, - { path: 'crisis', loadChildren: 'app/crisis/crisis.module#CrisisModule' }, - { path: 'heroes', loadChildren: 'app/hero/hero.module.3#HeroModule' } + { path: 'crisis', loadChildren: './crisis/crisis.module#CrisisModule' }, + { path: 'heroes', loadChildren: './hero/hero.module.3#HeroModule' } ]; @NgModule({ diff --git a/aio/content/examples/ngmodule-faq/src/app/app-routing.module.ts b/aio/content/examples/ngmodule-faq/src/app/app-routing.module.ts index 4ce7438bc4..de16e8e6e6 100644 --- a/aio/content/examples/ngmodule-faq/src/app/app-routing.module.ts +++ b/aio/content/examples/ngmodule-faq/src/app/app-routing.module.ts @@ -8,8 +8,8 @@ import { ContactModule } from './contact/contact.module'; const routes: Routes = [ { path: '', redirectTo: 'contact', pathMatch: 'full'}, // #docregion lazy-routes - { path: 'crisis', loadChildren: 'app/crisis/crisis.module#CrisisModule' }, - { path: 'heroes', loadChildren: 'app/hero/hero.module#HeroModule' } + { path: 'crisis', loadChildren: './crisis/crisis.module#CrisisModule' }, + { path: 'heroes', loadChildren: './hero/hero.module#HeroModule' } // #enddocregion lazy-routes ]; // #enddocregion routes 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 f4cd4ba03a..2fea32093a 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: 'app/items/items.module#ItemsModule' }, - { path: 'customers', loadChildren: 'app/customers/customers.module#CustomersModule' } + { path: 'items', loadChildren: './items/items.module#ItemsModule' }, + { path: 'customers', loadChildren: './customers/customers.module#CustomersModule' } ]; @NgModule({ 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 f9fd0bdc83..7630c216f6 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: 'app/hero/hero.module#HeroModule'} + { path: 'heroes', loadChildren: './hero/hero.module#HeroModule'} ]) ], exports: [ RouterModule ] // re-export the module declarations