blob: 92e3e43e30b0ffb59849b3143b139a18be51bd75 (
plain) (
tree)
|
|
import { Routes } from '@angular/router';
import { UsersComponent } from './users.component';
import { UserAddComponent } from './user-add';
import { UserListComponent } from './user-list';
export const UsersRoutes: Routes = [
{
path: 'users',
component: UsersComponent,
children: [
{
path: '',
redirectTo: 'list',
pathMatch: 'full'
},
{
path: 'list',
component: UserListComponent,
data: {
meta: {
titleSuffix: ' - Users list'
}
}
},
{
path: 'add',
component: UserAddComponent,
data: {
meta: {
titleSuffix: ' - Add a user'
}
}
}
]
}
];
|