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:
James Cox
2026-04-22 17:26:49 -04:00
committed by Zach Yale
parent 68e3df7cde
commit b3fe4fd598
6 changed files with 30 additions and 31 deletions
@@ -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);
}