Browse Source

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

pull/23262/head
Fahri Gedik 7 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 { RestService } from '@abp/ng.core';
import { Injectable } from '@angular/core';
import { Injectable, inject } from '@angular/core';
@Injectable({
providedIn: 'root',
})
export class FeaturesService {
private restService = inject(RestService);
apiName = 'AbpFeatureManagement';
delete = (providerName: string, providerKey: string) =>
@ -38,6 +40,4 @@ export class FeaturesService {
},
{ apiName: this.apiName },
);
constructor(private restService: RestService) {}
}

Loading…
Cancel
Save