Browse Source

feat(client): migrate constructor based injection to inject function

pull/6643/head
KenTandrian 9 hours ago
parent
commit
e50588fec2
  1. 11
      apps/client/src/app/components/access-table/access-table.component.ts

11
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<Access>;
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,

Loading…
Cancel
Save