Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 48x 96x | import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { DetailComponent } from './components/detail/detail.component'; import { FormComponent } from './components/form/form.component'; import { ListComponent } from './components/list/list.component'; const routes: Routes = [ { path: '', title: 'Sessions', component: ListComponent }, { path: 'detail/:id', title: 'Sessions - detail', component: DetailComponent }, { path: 'create', title: 'Sessions - create', component: FormComponent }, { path: 'update/:id', title: 'Sessions - update', component: FormComponent } ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class SessionsRoutingModule { } |