From e50588fec2c97db06d3b325e64cf6fa086a3b19b Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Tue, 31 Mar 2026 23:24:19 +0700 Subject: [PATCH] feat(client): migrate constructor based injection to inject function --- .../components/access-table/access-table.component.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/client/src/app/components/access-table/access-table.component.ts b/apps/client/src/app/components/access-table/access-table.component.ts index 11758f410..15f1367ef 100644 --- a/apps/client/src/app/components/access-table/access-table.component.ts +++ b/apps/client/src/app/components/access-table/access-table.component.ts @@ -9,6 +9,7 @@ import { Component, CUSTOM_ELEMENTS_SCHEMA, EventEmitter, + inject, Input, OnChanges, Output @@ -58,11 +59,11 @@ export class GfAccessTableComponent implements OnChanges { public dataSource: MatTableDataSource; public displayedColumns: string[] = []; - public constructor( - private clipboard: Clipboard, - private notificationService: NotificationService, - private snackBar: MatSnackBar - ) { + private readonly clipboard = inject(Clipboard); + private readonly notificationService = inject(NotificationService); + private readonly snackBar = inject(MatSnackBar); + + public constructor() { addIcons({ copyOutline, createOutline,