Open web-dave opened 7 years ago
const routes: Routes = [
{
path: '',
component: BooksComponent,
children: [{
path: '',
component: BookListComponent
}]
}
];
const routes: Routes = [
{
path: 'books',
loadChildren: './books/books.module#BooksModule'
},
...
];
foo
/books
routing rules tobooks-routing.module
path: 'books'
topath: ''
app-routing.module
set/books
to loadChildrenBooksModule
fromAppModule
(completely)