feat: add saving-deposit and withdrawal page (#389)
- Add Savings Module. - Add saving-account-actions component. - Add savings-account-transactions component. - Add savings-routing.module.ts - Add savings-transaction-template.resolver.ts Fixes: #249
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
/** Angular Imports */
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
/** Translation Imports */
|
||||
import { extract } from '../core/i18n/i18n.service';
|
||||
|
||||
/** Custom Components */
|
||||
import { SavingAccountActionsComponent } from './saving-account-actions/saving-account-actions.component';
|
||||
|
||||
/** Custom Resolvers */
|
||||
import { SavingAccountTransactionTemplateResolver } from './common-resolvers/saving-transaction-template.resolver';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
data: { title: extract('All Savings'), breadcrumb: 'Savings', routeParamBreadcrumb: false },
|
||||
// Component to view all saving accounts Comes Here
|
||||
children: [
|
||||
{
|
||||
path: ':savingAccountId',
|
||||
data: { title: extract('Saving Account View'), routeParamBreadcrumb: 'savingAccountId' },
|
||||
// Component For Saving Account View Comes Here
|
||||
children: [
|
||||
{
|
||||
path: ':action',
|
||||
component: SavingAccountActionsComponent,
|
||||
data: { title: extract('Saving Account Actions'), routeParamBreadcrumb: 'action' },
|
||||
resolve: {
|
||||
savingAccountTransactionTemplate: SavingAccountTransactionTemplateResolver
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
declarations: [],
|
||||
providers: [SavingAccountTransactionTemplateResolver]
|
||||
})
|
||||
export class SavingsRoutingModule { }
|
||||
Reference in New Issue
Block a user