Browse Source

refactor : migrate feature-management package to inject() DI

pull/23262/head
Fahri Gedik 9 months ago
parent
commit
32ebc662c4
  1. 6
      npm/ng-packs/packages/feature-management/proxy/src/lib/proxy/feature-management/features.service.ts

6
npm/ng-packs/packages/feature-management/proxy/src/lib/proxy/feature-management/features.service.ts

@ -1,11 +1,13 @@
import type { GetFeatureListResultDto, UpdateFeaturesDto } from './models'; import type { GetFeatureListResultDto, UpdateFeaturesDto } from './models';
import { RestService } from '@abp/ng.core'; import { RestService } from '@abp/ng.core';
import { Injectable } from '@angular/core'; import { Injectable, inject } from '@angular/core';
@Injectable({ @Injectable({
providedIn: 'root', providedIn: 'root',
}) })
export class FeaturesService { export class FeaturesService {
private restService = inject(RestService);
apiName = 'AbpFeatureManagement'; apiName = 'AbpFeatureManagement';
delete = (providerName: string, providerKey: string) => delete = (providerName: string, providerKey: string) =>
@ -38,6 +40,4 @@ export class FeaturesService {
}, },
{ apiName: this.apiName }, { apiName: this.apiName },
); );
constructor(private restService: RestService) {}
} }

Loading…
Cancel
Save