blob: a6a9c4c193ede6fd7579da49a8c6d3b1dd8af3cd (
plain) (
tree)
|
|
import { Routes } from '@angular/router'
import { UsersComponent } from './users.component'
import { UserAddComponent, UserUpdateComponent } from './user-edit'
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: {
title: 'Users list'
}
}
},
{
path: 'add',
component: UserAddComponent,
data: {
meta: {
title: 'Add a user'
}
}
},
{
path: ':id/update',
component: UserUpdateComponent,
data: {
meta: {
title: 'Update a user'
}
}
}
]
}
]
|