Browse Source

feat(client): replace constructor based DI with inject

pull/6806/head
KenTandrian 4 weeks ago
parent
commit
ecc6b7ba74
  1. 15
      apps/client/src/app/pages/pricing/pricing-page.component.ts

15
apps/client/src/app/pages/pricing/pricing-page.component.ts

@ -13,6 +13,7 @@ import {
Component, Component,
CUSTOM_ELEMENTS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA,
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';
@ -89,13 +90,13 @@ export class GfPricingPageComponent implements OnInit {
private couponId: string | undefined; private couponId: string | undefined;
private priceId: string; private priceId: string;
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 notificationService = inject(NotificationService);
private readonly notificationService: NotificationService, private readonly userService = inject(UserService);
private readonly userService: UserService
) { public constructor() {
addIcons({ addIcons({
checkmarkCircleOutline, checkmarkCircleOutline,
checkmarkOutline, checkmarkOutline,

Loading…
Cancel
Save