2017-05-10 11:04:06 +02:00
|
|
|
import {Routes} from "@angular/router";
|
|
|
|
import {DecorationComponent} from "./decoration.component";
|
|
|
|
import {DecorationListComponent} from "./decoration-list/decoration-list.component";
|
2017-05-17 15:55:22 +02:00
|
|
|
import {EditDecorationComponent} from "./edit-decoration/edit-decoration.component";
|
2017-05-10 11:04:06 +02:00
|
|
|
|
|
|
|
export const decorationsRoutes: Routes = [{
|
|
|
|
path: '', component: DecorationComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: DecorationListComponent
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'new',
|
2017-05-17 15:55:22 +02:00
|
|
|
component: EditDecorationComponent,
|
2017-05-10 11:04:06 +02:00
|
|
|
outlet: 'right'
|
|
|
|
},
|
|
|
|
{
|
2017-05-16 20:06:00 +02:00
|
|
|
path: 'edit/:id',
|
2017-05-17 15:55:22 +02:00
|
|
|
component: EditDecorationComponent,
|
2017-05-10 11:04:06 +02:00
|
|
|
outlet: 'right'
|
|
|
|
}];
|
|
|
|
|
2017-05-17 15:55:22 +02:00
|
|
|
export const decorationsRoutingComponents = [DecorationComponent, DecorationListComponent, EditDecorationComponent];
|
2017-05-10 11:04:06 +02:00
|
|
|
|