2017-05-10 11:04:06 +02:00
|
|
|
import {Routes} from "@angular/router";
|
|
|
|
import {SquadComponent} from "./squads.component";
|
|
|
|
import {SquadListComponent} from "./squad-list/squad-list.component";
|
2017-05-17 15:55:22 +02:00
|
|
|
import {EditSquadComponent} from "./edit-squad/edit-squad.component";
|
2017-05-10 11:04:06 +02:00
|
|
|
|
|
|
|
export const squadsRoutes: Routes = [{
|
|
|
|
path: '', component: SquadComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: SquadListComponent
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'new',
|
2017-05-17 15:55:22 +02:00
|
|
|
component: EditSquadComponent,
|
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: EditSquadComponent,
|
2017-05-10 11:04:06 +02:00
|
|
|
outlet: 'right'
|
|
|
|
}];
|
|
|
|
|
2017-05-17 15:55:22 +02:00
|
|
|
export const squadsRoutingComponents = [SquadComponent, SquadListComponent, EditSquadComponent];
|
2017-05-10 11:04:06 +02:00
|
|
|
|