2020-07-30 13:03:09 +03:00
|
|
|
import { NgModule } from '@angular/core';
|
2017-02-22 18:13:21 +00:00
|
|
|
import { Routes,
|
2020-07-30 13:03:09 +03:00
|
|
|
RouterModule } from '@angular/router';
|
2017-02-22 18:13:21 +00:00
|
|
|
|
2020-07-30 13:03:09 +03:00
|
|
|
import { ItemsListComponent } from './items-list.component';
|
|
|
|
import { ItemsDetailComponent } from './items-detail.component';
|
2017-02-22 18:13:21 +00:00
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{ path: '', redirectTo: 'list', pathMatch: 'full'},
|
2017-07-04 10:58:20 -04:00
|
|
|
{ path: 'list', component: ItemsListComponent },
|
|
|
|
{ path: ':id', component: ItemsDetailComponent }
|
2017-02-22 18:13:21 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
2017-07-04 10:58:20 -04:00
|
|
|
export class ItemsRoutingModule {}
|
|
|
|
|