X-Git-Url: https://juplo.de/gitweb/?p=examples%2Fangular-tour-of-heroes;a=blobdiff_plain;f=src%2Fapp%2Fapp-routing.module.ts;h=2a250c9ca036de19fd29c00c3a9363a2a4f81e96;hp=b0354f5f5ec27f88b8e9d7097a137eacec3acde5;hb=50aeef7b5e0e7f75d1a1de38e2a45bf1953de785;hpb=9dd5d87bd26b5ccefbf8bb281b56798a285bcce5 diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index b0354f5..2a250c9 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -2,11 +2,13 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { HeroesComponent } from './heroes/heroes.component'; import { DashboardComponent } from './dashboard/dashboard.component'; +import { HeroDetailComponent} from './hero-detail/hero-detail.component'; const routes : Routes = [ { path: '', redirectTo: 'dashboard', pathMatch: 'full'}, { path: 'heroes', component: HeroesComponent }, + { path: 'detail/:id', component: HeroDetailComponent }, { path: 'dashboard', component: DashboardComponent } ];