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, ChangeDetectionStrategy,
Component, Component,
type ElementRef, type ElementRef,
EventEmitter,
Input, Input,
OnChanges, OnChanges,
OnDestroy, OnDestroy,
Output, output,
viewChild viewChild
} from '@angular/core'; } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { FormsModule, ReactiveFormsModule } from '@angular/forms';
@ -77,7 +76,7 @@ export class GfBenchmarkComparatorComponent implements OnChanges, OnDestroy {
@Input() performanceDataItems: LineChartItem[]; @Input() performanceDataItems: LineChartItem[];
@Input() user: User; @Input() user: User;
@Output() benchmarkChanged = new EventEmitter<string>(); public readonly benchmarkChanged = output<string>();
protected chart: Chart<'line'>; protected chart: Chart<'line'>;
protected hasPermissionToAccessAdminControl: boolean; protected hasPermissionToAccessAdminControl: boolean;
@ -115,7 +114,7 @@ export class GfBenchmarkComparatorComponent implements OnChanges, OnDestroy {
} }
public onChangeBenchmark(symbolProfileId: string) { public onChangeBenchmark(symbolProfileId: string) {
this.benchmarkChanged.next(symbolProfileId); this.benchmarkChanged.emit(symbolProfileId);
} }
public ngOnDestroy() { public ngOnDestroy() {

Loading…
Cancel
Save