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 {NetTransactionsComponent} from './net-transactions.component';
|
||||
|
||||
const netTransactionsRoutes: Routes = [
|
||||
{
|
||||
path: 'NetTransactions',
|
||||
path: '',
|
||||
component: NetTransactionsComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
|
||||
@ -45,7 +45,7 @@ export class NetTransactionsComponent implements OnInit {
|
||||
|
||||
show() {
|
||||
const l = this.prepareSubmit();
|
||||
this.router.navigate(['NetTransactions'], {
|
||||
this.router.navigate(['net-transactions'], {
|
||||
queryParams: {
|
||||
startDate: l.startDate,
|
||||
finishDate: l.finishDate
|
||||
|
||||
@ -9,7 +9,7 @@ const httpOptions = {
|
||||
headers: new HttpHeaders({'Content-Type': 'application/json'})
|
||||
};
|
||||
|
||||
const url = '/api/NetTransactions';
|
||||
const url = '/api/net-transactions';
|
||||
const serviceName = 'NetTransactionsService';
|
||||
|
||||
@Injectable({
|
||||
|
||||
Reference in New Issue
Block a user