From ffbae85e11826acebfc856b06fb4dd775c1d173f Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Wed, 13 Jun 2018 21:18:07 +0200 Subject: [PATCH] Debug. --- src/operations/balanceChart.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/operations/balanceChart.component.ts b/src/operations/balanceChart.component.ts index dec9eb1..bd67000 100644 --- a/src/operations/balanceChart.component.ts +++ b/src/operations/balanceChart.component.ts @@ -9,6 +9,7 @@ import { } from '@angular/core'; import { ActivatedRoute, Router, ParamMap } from '@angular/router'; +import { Logger } from '@nsalaun/ng-logger'; import { jqxChartComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxchart'; import { Account } from '../accounts/account'; @@ -122,12 +123,15 @@ export class BalanceChartComponent implements OnInit, OnChanges { constructor( private router: Router, private activatedRoute: ActivatedRoute, + private logger: Logger, private dailyBalanceService: DailyBalanceService, ) { this.data = []; } loadData() { + this.logger.info('Loading data.'); + let accountId = this.activatedRoute.snapshot.paramMap.get('accountId'); this.dailyBalanceService.query(