@@ -7,9 +7,11 @@ import { extract } from '../core/i18n/i18n.service';
|
||||
|
||||
/** Custom Components */
|
||||
import { ViewStandingInstructionsComponent } from './view-standing-instructions/view-standing-instructions.component';
|
||||
import { EditStandingInstructionsComponent } from './edit-standing-instructions/edit-standing-instructions.component';
|
||||
|
||||
/** Custom Resolvers */
|
||||
import { ViewStandingInstructionsResolver } from './common-resolvers/view-standing-instructions.resolver';
|
||||
import { StandingInstructionsDataAndTemplateResolver } from './common-resolvers/standing-instructions-data-and-template.resolver';
|
||||
|
||||
/** Loans Route. */
|
||||
const routes: Routes = [
|
||||
@@ -28,6 +30,14 @@ const routes: Routes = [
|
||||
standingInstructionsData: ViewStandingInstructionsResolver,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'edit',
|
||||
data: { title: extract('Edit Standing Instructions'), breadcrumb: 'edit', routeParamBreadcrumb: false },
|
||||
component: EditStandingInstructionsComponent,
|
||||
resolve: {
|
||||
standingInstructionsDataAndTemplate: StandingInstructionsDataAndTemplateResolver,
|
||||
},
|
||||
}
|
||||
]
|
||||
}]
|
||||
}
|
||||
@@ -38,6 +48,7 @@ const routes: Routes = [
|
||||
declarations: [],
|
||||
providers: [
|
||||
ViewStandingInstructionsResolver,
|
||||
StandingInstructionsDataAndTemplateResolver
|
||||
]
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user