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:
Amritanshu committed 2019-06-13 16:36:43 +05:30
1 parent fea48e1a3e
commit 72044476a8
184 files changed
+786 -664

No files matched your search

@@ -3,7 +3,7 @@ import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
import {map} from 'rxjs/operators';
import {merge, Observable, of as observableOf} from 'rxjs';
import {CostCentre} from '../cost-centre';
import {CostCentre} from '../../core/cost-centre';
export class CostCentreListDataSource extends DataSource<CostCentre> {
@@ -1,7 +1,7 @@
<mat-card>
<mat-card-title-group>
<mat-card-title>Cost Centers</mat-card-title>
<a mat-button [routerLink]="['/CostCentre']">
<a mat-button [routerLink]="['/cost-centres', 'new']">
<mat-icon>add_box</mat-icon>
Add
</a>
@@ -12,7 +12,7 @@
<!-- Name Column -->
<ng-container matColumnDef="name">
<mat-header-cell *matHeaderCellDef mat-sort-header>Name</mat-header-cell>
<mat-cell *matCellDef="let row"><a [routerLink]="['/CostCentre', row.id]">{{row.name}}</a></mat-cell>
<mat-cell *matCellDef="let row"><a [routerLink]="['/cost-centres', row.id]">{{row.name}}</a></mat-cell>
</ng-container>
<!-- Name Column -->
@@ -2,7 +2,7 @@ import {Component, OnInit, ViewChild} from '@angular/core';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
import {CostCentreListDataSource} from './cost-centre-list-datasource';
import {CostCentre} from '../cost-centre';
import {CostCentre} from '../../core/cost-centre';
import {ActivatedRoute} from '@angular/router';
@Component({