Skip to content

Commit

Permalink
Refactor PcRepository to use Angular's inject function for HttpClient
Browse files Browse the repository at this point in the history
  • Loading branch information
chad-ramos committed Nov 12, 2024
1 parent cc15012 commit fed4e45
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions projects/pioneer-charts-dev/src/app/services/pc.repository.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Injectable } from '@angular/core';
import { inject, Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import {
PcacLineAreaChartConfig,
Expand All @@ -13,8 +13,7 @@ import {
providedIn: 'root',
})
export class PcRepository {

constructor(private http: HttpClient) { }
private readonly http = inject(HttpClient);

/**
* Bar Charts Horizontal
Expand Down

0 comments on commit fed4e45

Please sign in to comment.