@@ -10,15 +10,25 @@ import { SharesAccountViewComponent } from './shares-account-view/shares-account
|
||||
import { TransactionsTabComponent } from './shares-account-view/transactions-tab/transactions-tab.component';
|
||||
import { ChargesTabComponent } from './shares-account-view/charges-tab/charges-tab.component';
|
||||
import { DividendsTabComponent } from './shares-account-view/dividends-tab/dividends-tab.component';
|
||||
import { CreateSharesAccountComponent } from './create-shares-account/create-shares-account.component';
|
||||
|
||||
/** Custom Resolvers */
|
||||
import { SharesAccountViewResolver } from './common-resolvers/share-account-view.resolver';
|
||||
import { SharesAccountTemplateResolver } from './common-resolvers/shares-account-template.resolver';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
data: { title: extract('Shares'), breadcrumb: 'Shares', routeParamBreadcrumb: false },
|
||||
children: [
|
||||
{
|
||||
path: 'create-shares-account',
|
||||
data: { title: extract('Create Shares Account'), breadcrumb: 'Create Shares Account' },
|
||||
component: CreateSharesAccountComponent,
|
||||
resolve: {
|
||||
sharesAccountTemplate: SharesAccountTemplateResolver
|
||||
}
|
||||
},
|
||||
{
|
||||
path: ':shareAccountId',
|
||||
data: { title: extract('Shares Account View'), routeParamBreadcrumb: 'shareAccountId' },
|
||||
@@ -52,7 +62,8 @@ const routes: Routes = [
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
providers: [
|
||||
SharesAccountViewResolver
|
||||
SharesAccountViewResolver,
|
||||
SharesAccountTemplateResolver
|
||||
]
|
||||
})
|
||||
export class SharesRoutingModule { }
|
||||
|
||||
Reference in New Issue
Block a user