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

34 lines
858 B
TypeScript
Raw Normal View History

2017-05-10 11:04:06 +02:00
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";
2017-05-13 14:57:40 +02:00
import {UserAwardComponent} from "./user-award/user-award.component";
2017-05-10 11:04:06 +02:00
export const usersRoutes: Routes = [{
path: '', component: UsersComponent,
children: [
{
path: '',
component: UserListComponent
}
]
},
{
2017-05-14 16:35:44 +02:00
path: 'overview',
component: UserOverviewComponent,
2017-05-10 11:04:06 +02:00
outlet: 'right'
},
{
path: 'overview/:id',
component: UserOverviewComponent,
outlet: 'right'
2017-05-13 14:57:40 +02:00
},
{
path: 'award/:id',
component: UserAwardComponent,
outlet: 'right'
}
];
2017-05-10 11:04:06 +02:00
2017-05-14 16:35:44 +02:00
export const usersRoutingComponents = [UsersComponent, UserListComponent, UserOverviewComponent, UserAwardComponent];