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:
@@ -7,7 +7,7 @@ import {Observable} from 'rxjs';
|
||||
import * as moment from 'moment';
|
||||
import {RawMaterialCostDataSource} from './raw-material-cost-datasource';
|
||||
import {RawMaterialCost} from './raw-material-cost';
|
||||
import {Product} from '../product/product';
|
||||
import {Product} from '../core/product';
|
||||
import {ToCsvService} from '../shared/to-csv.service';
|
||||
|
||||
@Component({
|
||||
@@ -53,7 +53,7 @@ export class RawMaterialCostComponent implements OnInit {
|
||||
|
||||
show() {
|
||||
const model = this.prepareSubmit();
|
||||
this.router.navigate(['RawMaterialCost'], {
|
||||
this.router.navigate(['raw-material-cost'], {
|
||||
queryParams: {
|
||||
startDate: model.startDate,
|
||||
finishDate: model.finishDate
|
||||
|
||||
Reference in New Issue
Block a user