]>
Commit | Line | Data |
---|---|---|
df98563e | 1 | import { Routes } from '@angular/router' |
7da18e44 | 2 | |
df98563e | 3 | import { UsersComponent } from './users.component' |
8094a898 | 4 | import { UserAddComponent, UserUpdateComponent } from './user-edit' |
df98563e | 5 | import { UserListComponent } from './user-list' |
7da18e44 | 6 | |
ab32b0fc | 7 | export const UsersRoutes: Routes = [ |
7da18e44 | 8 | { |
1f0215a9 C |
9 | path: 'users', |
10 | component: UsersComponent, | |
11 | children: [ | |
12 | { | |
13 | path: '', | |
14 | redirectTo: 'list', | |
15 | pathMatch: 'full' | |
16 | }, | |
17 | { | |
18 | path: 'list', | |
19 | component: UserListComponent, | |
20 | data: { | |
21 | meta: { | |
22 | title: 'Users list' | |
b58c69a1 | 23 | } |
1f0215a9 C |
24 | } |
25 | }, | |
26 | { | |
27 | path: 'add', | |
28 | component: UserAddComponent, | |
29 | data: { | |
30 | meta: { | |
31 | title: 'Add a user' | |
b58c69a1 | 32 | } |
7da18e44 | 33 | } |
8094a898 C |
34 | }, |
35 | { | |
36 | path: ':id/update', | |
37 | component: UserUpdateComponent, | |
38 | data: { | |
39 | meta: { | |
40 | title: 'Update a user' | |
41 | } | |
42 | } | |
1f0215a9 C |
43 | } |
44 | ] | |
45 | } | |
df98563e | 46 | ] |