blob: a9a06539b55ecf507cf4c81a392823b038ef7b04 (
plain) (
tree)
|
|
import { Routes } from '@angular/router';
import { FriendsComponent } from './friends.component';
import { FriendAddComponent } from './friend-add';
import { FriendListComponent } from './friend-list';
export const FriendsRoutes: Routes = [
{
path: 'friends',
component: FriendsComponent,
children: [
{
path: '',
redirectTo: 'list',
pathMatch: 'full'
},
{
path: 'list',
component: FriendListComponent,
data: {
meta: {
titleSuffix: ' - Friends list'
}
}
},
{
path: 'add',
component: FriendAddComponent,
data: {
meta: {
titleSuffix: ' - Add friends'
}
}
}
]
}
];
|