diff --git a/apps/client/src/app/components/benchmark-comparator/benchmark-comparator.component.ts b/apps/client/src/app/components/benchmark-comparator/benchmark-comparator.component.ts index 3cf387647..33835bfa3 100644 --- a/apps/client/src/app/components/benchmark-comparator/benchmark-comparator.component.ts +++ b/apps/client/src/app/components/benchmark-comparator/benchmark-comparator.component.ts @@ -22,11 +22,10 @@ import { ChangeDetectionStrategy, Component, type ElementRef, - EventEmitter, Input, OnChanges, OnDestroy, - Output, + output, viewChild } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; @@ -77,7 +76,7 @@ export class GfBenchmarkComparatorComponent implements OnChanges, OnDestroy { @Input() performanceDataItems: LineChartItem[]; @Input() user: User; - @Output() benchmarkChanged = new EventEmitter(); + public readonly benchmarkChanged = output(); protected chart: Chart<'line'>; protected hasPermissionToAccessAdminControl: boolean; @@ -115,7 +114,7 @@ export class GfBenchmarkComparatorComponent implements OnChanges, OnDestroy { } public onChangeBenchmark(symbolProfileId: string) { - this.benchmarkChanged.next(symbolProfileId); + this.benchmarkChanged.emit(symbolProfileId); } public ngOnDestroy() {