]>
Commit | Line | Data |
---|---|---|
ab32b0fc | 1 | import { Routes } from '@angular/router'; |
e2f555ca C |
2 | |
3 | import { FriendsComponent } from './friends.component'; | |
e105c19c | 4 | import { FriendAddComponent } from './friend-add'; |
e2f555ca C |
5 | import { FriendListComponent } from './friend-list'; |
6 | ||
ab32b0fc | 7 | export const FriendsRoutes: Routes = [ |
e2f555ca C |
8 | { |
9 | path: 'friends', | |
10 | component: FriendsComponent, | |
11 | children: [ | |
12 | { | |
13 | path: '', | |
14 | redirectTo: 'list', | |
15 | pathMatch: 'full' | |
16 | }, | |
17 | { | |
18 | path: 'list', | |
b58c69a1 C |
19 | component: FriendListComponent, |
20 | data: { | |
21 | meta: { | |
55b33946 | 22 | title: 'Friends list' |
b58c69a1 C |
23 | } |
24 | } | |
e105c19c C |
25 | }, |
26 | { | |
27 | path: 'add', | |
b58c69a1 C |
28 | component: FriendAddComponent, |
29 | data: { | |
30 | meta: { | |
55b33946 | 31 | title: 'Add friends' |
b58c69a1 C |
32 | } |
33 | } | |
e2f555ca C |
34 | } |
35 | ] | |
36 | } | |
37 | ]; |