2018-03-07 11:56:50 +01:00
|
|
|
import {RouterModule, Routes} from '@angular/router';
|
|
|
|
import {UsersComponent} from './users.component';
|
|
|
|
import {EditUserComponent} from './edit-user/edit-user.component';
|
|
|
|
import {UserListComponent} from './user-list/user-list.component';
|
|
|
|
import {AwardUserComponent} from './award-user/award-user.component';
|
|
|
|
import {ModuleWithProviders} from '@angular/core';
|
|
|
|
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
|
|
|
|
2018-07-08 18:27:24 +02:00
|
|
|
export const usersRoutingComponents = [UserItemComponent, UsersComponent, UserListComponent, EditUserComponent,
|
|
|
|
AwardUserComponent];
|