Browse Source

feat(client): implement output signal

pull/6904/head
KenTandrian 1 week ago
parent
commit
4d047b626e
  1. 7
      apps/client/src/app/components/benchmark-comparator/benchmark-comparator.component.ts

7
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<string>();
public readonly benchmarkChanged = output<string>();
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() {

Loading…
Cancel
Save