Skip to content

Commit f44a2c7

Browse files
committed
docs(aio): Update lazy loading docs for Angular v6
1 parent 490e39a commit f44a2c7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

aio/content/examples/lazy-loading-ngmodules/src/app/app-routing.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import { Routes, RouterModule } from '@angular/router';
88
const routes: Routes = [
99
{
1010
path: 'customers',
11-
loadChildren: 'app/customers/customers.module#CustomersModule'
11+
loadChildren: './customers/customers.module#CustomersModule'
1212
},
1313
{
1414
path: 'orders',
15-
loadChildren: 'app/orders/orders.module#OrdersModule'
15+
loadChildren: './orders/orders.module#OrdersModule'
1616
},
1717
{
1818
path: '',

aio/content/guide/lazy-loading-ngmodules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ In `AppRoutingModule`, update the `routes` array with the following:
143143
</code-example>
144144

145145

146-
The import statements stay the same. The first two paths are the routes to the `CustomersModule` and the `OrdersModule` respectively. Notice that the lazy loading syntax uses `loadChildren` followed by a string that is the path to the module, a hash mark or `#`, and the module’s class name.
146+
The import statements stay the same. The first two paths are the routes to the `CustomersModule` and the `OrdersModule` respectively. Notice that the lazy loading syntax uses `loadChildren` followed by a string that is the relative path to the module, a hash mark or `#`, and the module’s class name.
147147

148148
### Inside the feature module
149149

0 commit comments

Comments
 (0)