From 4090a6266bfebc49ab1896341177c958e47520bc Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Tue, 7 Jul 2026 07:50:40 +0700 Subject: [PATCH] feat(client): replace constructor based DI with inject functions --- .../portfolio-performance/portfolio-performance.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts index f7d4e469a..386725acf 100644 --- a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts +++ b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts @@ -14,6 +14,7 @@ import { ChangeDetectionStrategy, Component, ElementRef, + inject, Input, OnChanges, ViewChild @@ -44,7 +45,9 @@ export class GfPortfolioPerformanceComponent implements OnChanges { @ViewChild('value') value: ElementRef; - public constructor(private notificationService: NotificationService) { + private readonly notificationService = inject(NotificationService); + + public constructor() { addIcons({ timeOutline }); }