issues
search
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
Generate a
BookListComponent
into your Books Module
Set
/books
as a root of ChildRouting
Don't forget to add a
router-outlet
to
books
Component
Check the DevTools and the hints!
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
BookListComponent
into your Books Module/books
as a root of ChildRoutingrouter-outlet
tobooks
Component