chore(ui): clear shared prefer-inject bucket
Convert the shared layout shell and shared service constructors to field injection so the frontend shell matches the repo's Angular inject() guidance without changing behavior. Validation: just ui lint
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import {inject, Injectable} from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { Observable } from 'rxjs';
|
||||
import {API_CONFIG} from '../../core/config/api-config';
|
||||
@@ -20,10 +20,9 @@ export interface ReleaseNote {
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class VersionService {
|
||||
private http = inject(HttpClient);
|
||||
private versionUrl = `${API_CONFIG.BASE_URL}/api/v1/version`;
|
||||
|
||||
constructor(private http: HttpClient) {}
|
||||
|
||||
getVersion(): Observable<AppVersion> {
|
||||
return this.http.get<AppVersion>(this.versionUrl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user