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 {DaybookComponent} from './daybook.component';
|
||||
|
||||
const daybookRoutes: Routes = [
|
||||
{
|
||||
path: 'Daybook',
|
||||
path: '',
|
||||
component: DaybookComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
|
||||
@ -6,7 +6,6 @@ import {ActivatedRoute, Router} from '@angular/router';
|
||||
import * as moment from 'moment';
|
||||
import {DaybookDataSource} from './daybook-datasource';
|
||||
import {Daybook} from './daybook';
|
||||
import {Account} from '../account/account';
|
||||
import {DaybookService} from './daybook.service';
|
||||
|
||||
@Component({
|
||||
@ -61,7 +60,7 @@ export class DaybookComponent implements OnInit {
|
||||
|
||||
show() {
|
||||
const l = this.prepareSubmit();
|
||||
this.router.navigate(['Daybook'], {
|
||||
this.router.navigate(['daybook'], {
|
||||
queryParams: {
|
||||
startDate: l.startDate,
|
||||
finishDate: l.finishDate
|
||||
|
||||
@ -9,7 +9,7 @@ const httpOptions = {
|
||||
headers: new HttpHeaders({'Content-Type': 'application/json'})
|
||||
};
|
||||
|
||||
const url = '/api/Daybook';
|
||||
const url = '/api/daybook';
|
||||
const serviceName = 'DaybookService';
|
||||
|
||||
@Injectable({
|
||||
|
||||
Reference in New Issue
Block a user