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
2019-06-12 19:34:50 +05:30
parent fea48e1a3e
commit 72044476a8
184 changed files with 786 additions and 664 deletions

View File

@ -7,7 +7,7 @@ import {PurchaseEntriesComponent} from './purchase-entries.component';
const purchaseEntriesRoutes: Routes = [
{
path: 'PurchaseEntries',
path: '',
component: PurchaseEntriesComponent,
canActivate: [AuthGuard],
data: {

View File

@ -44,7 +44,7 @@ export class PurchaseEntriesComponent implements OnInit {
show() {
const l = this.prepareSubmit();
this.router.navigate(['PurchaseEntries'], {
this.router.navigate(['purchase-entries'], {
queryParams: {
startDate: l.startDate,
finishDate: l.finishDate

View File

@ -9,7 +9,7 @@ const httpOptions = {
headers: new HttpHeaders({'Content-Type': 'application/json'})
};
const url = '/api/PurchaseEntries';
const url = '/api/purchase-entries';
const serviceName = 'PurchaseEntriesService';
@Injectable({