Feature: Lazy loading
Lazy loaded everything TODO: The cash flow module when clicking on sub-links, it reloads the whole page, it needs to be diagnosed and fixed, this problem also exists in the other modules TODO: Rename folders and modules such as account to accounts to match the url
This commit is contained in:
@@ -13,7 +13,7 @@ import {CostCentreListResolver} from '../cost-centre/cost-centre-list-resolver.s
|
||||
|
||||
const accountRoutes: Routes = [
|
||||
{
|
||||
path: 'Accounts',
|
||||
path: '',
|
||||
component: AccountListComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
@@ -24,7 +24,7 @@ const accountRoutes: Routes = [
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'Account',
|
||||
path: 'new',
|
||||
component: AccountDetailComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
@@ -37,7 +37,7 @@ const accountRoutes: Routes = [
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'Account/:id',
|
||||
path: ':id',
|
||||
component: AccountDetailComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
|
||||
Reference in New Issue
Block a user