argos/dmp-frontend/src/app/ui/grant/grant.routing.ts

37 lines
748 B
TypeScript
Raw Normal View History

2019-01-18 18:03:45 +01:00
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { GrantEditorComponent } from './editor/grant-editor.component';
import { GrantListingComponent } from './listing/grant-listing.component';
2018-01-30 10:35:26 +01:00
2019-01-18 18:03:45 +01:00
const routes: Routes = [
2018-10-05 17:00:54 +02:00
{
path: '',
component: GrantListingComponent,
2018-10-05 17:00:54 +02:00
data: {
breadcrumb: true
},
},
{
path: 'edit/:id',
component: GrantEditorComponent,
2018-10-05 17:00:54 +02:00
data: {
2019-09-16 17:46:19 +02:00
breadcrumb: true,
title: 'GENERAL.TITLES.GRANT-EDIT'
2019-01-18 18:03:45 +01:00
}
2018-10-05 17:00:54 +02:00
},
{
path: 'new',
component: GrantEditorComponent,
2018-10-05 17:00:54 +02:00
data: {
2019-09-16 17:46:19 +02:00
breadcrumb: true,
title: 'GENERAL.TITLES.GRANT-NEW'
2018-10-05 17:00:54 +02:00
},
2019-01-18 18:03:45 +01:00
}
2018-01-30 10:35:26 +01:00
];
2019-01-18 18:03:45 +01:00
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class GrantRoutingModule { }