Browse Source

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

pull/6643/head
KenTandrian 11 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, Component,
CUSTOM_ELEMENTS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA,
EventEmitter, EventEmitter,
inject,
Input, Input,
OnChanges, OnChanges,
Output Output
@ -58,11 +59,11 @@ export class GfAccessTableComponent implements OnChanges {
public dataSource: MatTableDataSource<Access>; public dataSource: MatTableDataSource<Access>;
public displayedColumns: string[] = []; public displayedColumns: string[] = [];
public constructor( private readonly clipboard = inject(Clipboard);
private clipboard: Clipboard, private readonly notificationService = inject(NotificationService);
private notificationService: NotificationService, private readonly snackBar = inject(MatSnackBar);
private snackBar: MatSnackBar
) { public constructor() {
addIcons({ addIcons({
copyOutline, copyOutline,
createOutline, createOutline,

Loading…
Cancel
Save