29 lines
780 B
TypeScript
29 lines
780 B
TypeScript
|
import {Routes} from "@angular/router";
|
||
|
import {SquadComponent} from "./squads.component";
|
||
|
import {SquadOverviewComponent} from "./squad-overview/squad-overview.component";
|
||
|
import {SquadListComponent} from "./squad-list/squad-list.component";
|
||
|
import {CreateSquadComponent} from "./new-squad/new-squad.component";
|
||
|
|
||
|
export const squadsRoutes: Routes = [{
|
||
|
path: '', component: SquadComponent,
|
||
|
children: [
|
||
|
{
|
||
|
path: '',
|
||
|
component: SquadListComponent
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
path: 'new',
|
||
|
component: CreateSquadComponent,
|
||
|
outlet: 'right'
|
||
|
},
|
||
|
{
|
||
|
path: 'overview/:id',
|
||
|
component: SquadOverviewComponent,
|
||
|
outlet: 'right'
|
||
|
}];
|
||
|
|
||
|
export const squadsRoutingComponents = [SquadComponent, SquadListComponent, SquadOverviewComponent, CreateSquadComponent];
|
||
|
|