Browse Source

feat(client): replace constructor based DI with inject

pull/6807/head
KenTandrian 4 weeks ago
parent
commit
279b4ca171
  1. 17
      apps/client/src/app/pages/portfolio/fire/fire-page.component.ts

17
apps/client/src/app/pages/portfolio/fire/fire-page.component.ts

@ -17,6 +17,7 @@ import {
ChangeDetectorRef, ChangeDetectorRef,
Component, Component,
DestroyRef, DestroyRef,
inject,
OnInit OnInit
} from '@angular/core'; } from '@angular/core';
import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
@ -62,14 +63,14 @@ export class GfFirePageComponent implements OnInit {
private projectedTotalAmount: number; private projectedTotalAmount: number;
public constructor( private readonly changeDetectorRef = inject(ChangeDetectorRef);
private readonly changeDetectorRef: ChangeDetectorRef, private readonly dataService = inject(DataService);
private readonly dataService: DataService, private readonly destroyRef = inject(DestroyRef);
private readonly destroyRef: DestroyRef, private readonly deviceService = inject(DeviceDetectorService);
private readonly deviceService: DeviceDetectorService, private readonly impersonationStorageService = inject(
private readonly impersonationStorageService: ImpersonationStorageService, ImpersonationStorageService
private readonly userService: UserService );
) {} private readonly userService = inject(UserService);
public ngOnInit() { public ngOnInit() {
this.isLoading = true; this.isLoading = true;

Loading…
Cancel
Save