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:
@ -9,7 +9,7 @@ import {AuthGuard} from '../auth/auth-guard.service';
|
||||
|
||||
const productGroupRoutes: Routes = [
|
||||
{
|
||||
path: 'ProductGroups',
|
||||
path: '',
|
||||
component: ProductGroupListComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
@ -20,7 +20,7 @@ const productGroupRoutes: Routes = [
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'ProductGroup',
|
||||
path: 'new',
|
||||
component: ProductGroupDetailComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
@ -31,7 +31,7 @@ const productGroupRoutes: Routes = [
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'ProductGroup/:id',
|
||||
path: ':id',
|
||||
component: ProductGroupDetailComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
|
||||
Reference in New Issue
Block a user