2018-03-07 11:56:50 +01:00
|
|
|
import {RouterModule, Routes} from '@angular/router';
|
|
|
|
import {SquadListComponent} from './squad-list/squad-list.component';
|
|
|
|
import {EditSquadComponent} from './edit-squad/edit-squad.component';
|
|
|
|
import {ModuleWithProviders} from '@angular/core';
|
|
|
|
import {SquadItemComponent} from './squad-list/squad-item.component';
|
2018-10-04 10:33:15 +02:00
|
|
|
import {SquadsComponent} from './squads.component';
|
2017-05-10 11:04:06 +02:00
|
|
|
|
2018-07-30 21:30:59 +02:00
|
|
|
export const squadsRoutes: Routes = [
|
2018-10-03 15:22:14 +02:00
|
|
|
{
|
|
|
|
path: '',
|
2018-10-04 10:33:15 +02:00
|
|
|
component: SquadsComponent
|
2018-10-03 15:22:14 +02:00
|
|
|
},
|
2018-07-30 21:30:59 +02:00
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: SquadListComponent,
|
|
|
|
outlet: 'left'
|
|
|
|
},
|
2017-05-10 11:04:06 +02:00
|
|
|
{
|
|
|
|
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'
|
2018-10-03 15:22:14 +02:00
|
|
|
}
|
|
|
|
];
|
2017-05-10 11:04:06 +02:00
|
|
|
|
2017-09-03 12:49:59 +02:00
|
|
|
export const squadRouterModule: ModuleWithProviders = RouterModule.forChild(squadsRoutes);
|
|
|
|
|
2018-10-04 10:33:15 +02:00
|
|
|
export const squadsRoutingComponents = [SquadsComponent, SquadItemComponent, SquadListComponent, EditSquadComponent];
|
2017-05-10 11:04:06 +02:00
|
|
|
|