2018-07-23 16:42:17 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
2018-10-23 14:20:29 +02:00
|
|
|
import { AgendaListComponent } from './components/agenda-list/agenda-list.component';
|
|
|
|
import { TopicDetailComponent } from './components/topic-detail/topic-detail.component';
|
|
|
|
import { SpeakerListComponent } from './components/speaker-list/speaker-list.component';
|
2018-07-23 16:42:17 +02:00
|
|
|
|
2018-10-23 14:20:29 +02:00
|
|
|
const routes: Routes = [
|
|
|
|
{ path: '', component: AgendaListComponent },
|
|
|
|
{ path: 'topics/new', component: TopicDetailComponent },
|
|
|
|
{ path: 'topics/:id', component: TopicDetailComponent },
|
|
|
|
{ path: ':id/speakers', component: SpeakerListComponent }
|
|
|
|
];
|
2018-07-23 16:42:17 +02:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class AgendaRoutingModule {}
|