From ecc6b7ba740d87874f560968d111c531848740ce Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Fri, 1 May 2026 09:34:49 +0700 Subject: [PATCH] feat(client): replace constructor based DI with inject --- .../app/pages/pricing/pricing-page.component.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/apps/client/src/app/pages/pricing/pricing-page.component.ts b/apps/client/src/app/pages/pricing/pricing-page.component.ts index 1c158b8dc..0b76fcd1d 100644 --- a/apps/client/src/app/pages/pricing/pricing-page.component.ts +++ b/apps/client/src/app/pages/pricing/pricing-page.component.ts @@ -13,6 +13,7 @@ import { Component, CUSTOM_ELEMENTS_SCHEMA, DestroyRef, + inject, OnInit } from '@angular/core'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; @@ -89,13 +90,13 @@ export class GfPricingPageComponent implements OnInit { private couponId: string | undefined; private priceId: string; - public constructor( - private readonly changeDetectorRef: ChangeDetectorRef, - private readonly dataService: DataService, - private readonly destroyRef: DestroyRef, - private readonly notificationService: NotificationService, - private readonly userService: UserService - ) { + private readonly changeDetectorRef = inject(ChangeDetectorRef); + private readonly dataService = inject(DataService); + private readonly destroyRef = inject(DestroyRef); + private readonly notificationService = inject(NotificationService); + private readonly userService = inject(UserService); + + public constructor() { addIcons({ checkmarkCircleOutline, checkmarkOutline,