2017-08-26 22:46:59 +02:00
|
|
|
import {RouterModule, Routes} from "@angular/router";
|
2017-05-10 11:04:06 +02:00
|
|
|
import {UsersComponent} from "./users.component";
|
2017-05-17 15:55:22 +02:00
|
|
|
import {EditUserComponent} from "./edit-user/edit-user.component";
|
2017-05-10 11:04:06 +02:00
|
|
|
import {UserListComponent} from "./user-list/user-list.component";
|
2017-05-18 14:32:51 +02:00
|
|
|
import {AwardUserComponent} from "./award-user/award-user.component";
|
2017-08-26 22:46:59 +02:00
|
|
|
import {ModuleWithProviders} from "@angular/core";
|
2017-09-02 22:59:13 +02:00
|
|
|
import {UserItemComponent} from "./user-list/user-item.component";
|
2017-05-10 11:04:06 +02:00
|
|
|
|
|
|
|
export const usersRoutes: Routes = [{
|
|
|
|
path: '', component: UsersComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: UserListComponent
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2017-05-17 15:55:22 +02:00
|
|
|
path: 'new',
|
|
|
|
component: EditUserComponent,
|
2017-05-10 11:04:06 +02:00
|
|
|
outlet: 'right'
|
|
|
|
},
|
|
|
|
{
|
2017-05-17 15:55:22 +02:00
|
|
|
path: 'edit/:id',
|
|
|
|
component: EditUserComponent,
|
2017-05-10 11:04:06 +02:00
|
|
|
outlet: 'right'
|
2017-05-13 14:57:40 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'award/:id',
|
2017-05-18 14:32:51 +02:00
|
|
|
component: AwardUserComponent,
|
2017-05-13 14:57:40 +02:00
|
|
|
outlet: 'right'
|
|
|
|
}
|
|
|
|
];
|
2017-05-10 11:04:06 +02:00
|
|
|
|
2017-10-08 18:13:20 +02:00
|
|
|
export const usersRouterModule: ModuleWithProviders = RouterModule.forChild(usersRoutes);
|
2017-08-26 22:46:59 +02:00
|
|
|
|
2017-09-02 22:59:13 +02:00
|
|
|
export const usersRoutingComponents = [UserItemComponent, UsersComponent, UserListComponent, EditUserComponent, AwardUserComponent];
|