web-dave / angular-starter-v2

6 stars 3 forks source link

lazy loading #7

Open web-dave opened 7 years ago

web-dave commented 7 years ago
web-dave commented 7 years ago

books-routing.module.ts

const routes: Routes = [
   {
    path: '',
    component: BooksComponent,
    children: [{
      path: '',
      component: BookListComponent
    }]
  }
];
web-dave commented 7 years ago

app-routing.module.ts

const routes: Routes = [
  {
    path: 'books',
    loadChildren: './books/books.module#BooksModule'
  },
  ...
];
web-dave commented 6 years ago

foo