fix
This commit is contained in:
@@ -47,6 +47,10 @@ export class AccountComponent {
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
/*this.activatedRoute.params.subscribe(params => {
|
||||
console.log(params);
|
||||
this.loadMotions();
|
||||
});*/
|
||||
this.loadMotions();
|
||||
|
||||
this.reloadEvent.subscribe(x => {
|
||||
@@ -86,13 +90,11 @@ export class AccountComponent {
|
||||
url += '?from=' + moment(this.dateFrom).format('yyyy-MM-DD');
|
||||
url += '&to=' + moment(this.dateTo).format('yyyy-MM-DD');
|
||||
|
||||
this.activatedRoute.params.subscribe(params => {
|
||||
this.httpClient
|
||||
.get<MotionModel[]>(url)
|
||||
.subscribe(data => {
|
||||
this.motions = data;
|
||||
});
|
||||
});
|
||||
this.httpClient
|
||||
.get<MotionModel[]>(url)
|
||||
.subscribe(data => {
|
||||
this.motions = data;
|
||||
});
|
||||
}
|
||||
|
||||
afterExpand() {
|
||||
|
||||
Reference in New Issue
Block a user