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:
1 parent
fea48e1a3e
commit
72044476a8
184 files changed
+786
-664
No files matched your search
@@ -7,7 +7,7 @@ import {StockMovementComponent} from './stock-movement.component';
|
||||
|
||||
const stockMovementRoutes: Routes = [
|
||||
{
|
||||
path: 'StockMovement',
|
||||
path: '',
|
||||
component: StockMovementComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
|
||||
@@ -44,7 +44,7 @@ export class StockMovementComponent implements OnInit {
|
||||
|
||||
show() {
|
||||
const l = this.prepareSubmit();
|
||||
this.router.navigate(['StockMovement'], {
|
||||
this.router.navigate(['stock-movement'], {
|
||||
queryParams: {
|
||||
startDate: l.startDate,
|
||||
finishDate: l.finishDate
|
||||
|
||||
@@ -9,7 +9,7 @@ const httpOptions = {
|
||||
headers: new HttpHeaders({'Content-Type': 'application/json'})
|
||||
};
|
||||
|
||||
const url = '/api/StockMovement';
|
||||
const url = '/api/stock-movement';
|
||||
const serviceName = 'StockMovementService';
|
||||
|
||||
@Injectable({
|
||||
|
||||
Reference in new issue
Block a user