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:
1 parent
fea48e1a3e
commit
72044476a8
184 files changed
+786
-664
No files matched your search
@@ -9,7 +9,7 @@ import {AuthGuard} from '../auth/auth-guard.service';
|
||||
|
||||
const costCentreRoutes: Routes = [
|
||||
{
|
||||
path: 'CostCentres',
|
||||
path: '',
|
||||
component: CostCentreListComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
@@ -20,7 +20,7 @@ const costCentreRoutes: Routes = [
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'CostCentre',
|
||||
path: 'new',
|
||||
component: CostCentreDetailComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
@@ -31,7 +31,7 @@ const costCentreRoutes: Routes = [
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'CostCentre/:id',
|
||||
path: ':id',
|
||||
component: CostCentreDetailComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
|
||||
Reference in new issue
Block a user