Open web-dave opened 4 months ago
Generate Components
ng g c about ng g c books
Add routes to route config
... export const routes: Routes = [ { path: '', redirectTo: '/books', pathMatch: 'full', }, { path: 'books', component: BooksComponent, }, { path: 'about', component: AboutComponent, }, ]; ...
... imports: [RouterLink] ...
... <router-outlet />
Highlight the active Route
NEXT
Generate Components
Add routes to route config
app.routes.ts
my-nav.component.ts
my-nav.component.html
```html ...app.component.html
Task
Highlight the active Route