]>
Commit | Line | Data |
---|---|---|
e2f555ca C |
1 | import { RouterConfig } from '@angular/router'; |
2 | ||
3 | import { FriendsComponent } from './friends.component'; | |
e105c19c | 4 | import { FriendAddComponent } from './friend-add'; |
e2f555ca C |
5 | import { FriendListComponent } from './friend-list'; |
6 | ||
7 | export const FriendsRoutes: RouterConfig = [ | |
8 | { | |
9 | path: 'friends', | |
10 | component: FriendsComponent, | |
11 | children: [ | |
12 | { | |
13 | path: '', | |
14 | redirectTo: 'list', | |
15 | pathMatch: 'full' | |
16 | }, | |
17 | { | |
18 | path: 'list', | |
19 | component: FriendListComponent | |
e105c19c C |
20 | }, |
21 | { | |
22 | path: 'add', | |
23 | component: FriendAddComponent | |
e2f555ca C |
24 | } |
25 | ] | |
26 | } | |
27 | ]; |