web-dave / angular-essentials-workshop

2 stars 0 forks source link

Child Routing #7

Open web-dave opened 2 years ago

web-dave commented 2 years ago
web-dave commented 2 years ago
Generate BookList ```bash ng g c books/book-list ```
app-routing.module.ts ```ts const routes: Routes = [ { path: 'books', component: BooksComponent, children: [{ path: '', component: BookListComponent }] }, ... ]; ```
books.component.html ```html

Welcome to Book 🐒

```
web-dave commented 2 years ago

Next