opt-cc/static/src/app/users/users.routing.ts

34 lines
858 B
TypeScript

import {Routes} from "@angular/router";
import {UsersComponent} from "./users.component";
import {UserOverviewComponent} from "./user-overview/user-overview.component";
import {UserListComponent} from "./user-list/user-list.component";
import {UserAwardComponent} from "./user-award/user-award.component";
export const usersRoutes: Routes = [{
path: '', component: UsersComponent,
children: [
{
path: '',
component: UserListComponent
}
]
},
{
path: 'overview',
component: UserOverviewComponent,
outlet: 'right'
},
{
path: 'overview/:id',
component: UserOverviewComponent,
outlet: 'right'
},
{
path: 'award/:id',
component: UserAwardComponent,
outlet: 'right'
}
];
export const usersRoutingComponents = [UsersComponent, UserListComponent, UserOverviewComponent, UserAwardComponent];