Open web-dave opened 6 years ago
ng g c books/book-list
const routes: Routes = [
{
path: 'books',
component: BooksComponent,
children: [{
path: '',
component: BookListComponent
}]
},
...
];
<p>
book works!
</p>
<router-outlet></router-outlet>
BookListComponent
into your Books Module/books
as a root of ChildRoutingrouter-outlet
tobooks
Component