chore(ui): clear final prefer-inject bucket
Convert the remaining feature and core constructors flagged by prefer-inject to field injection so the last Angular inject() violations are removed across upload dialogs, core services, and bookdrop flows. Validation: just ui lint
This commit is contained in:
@@ -1,17 +1,14 @@
|
||||
import { Injectable, ComponentRef, ApplicationRef, createComponent, EnvironmentInjector } from '@angular/core';
|
||||
import {Injectable, ComponentRef, ApplicationRef, createComponent, EnvironmentInjector, inject} from '@angular/core';
|
||||
import { LibraryLoadingComponent } from './library-loading/library-loading.component';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class LibraryLoadingService {
|
||||
private appRef = inject(ApplicationRef);
|
||||
private injector = inject(EnvironmentInjector);
|
||||
private componentRef: ComponentRef<LibraryLoadingComponent> | null = null;
|
||||
|
||||
constructor(
|
||||
private appRef: ApplicationRef,
|
||||
private injector: EnvironmentInjector
|
||||
) {}
|
||||
|
||||
showBookLoadingProgress(bookTitle: string, current: number, total: number): void {
|
||||
if (this.componentRef) {
|
||||
this.updateProgress(bookTitle, current, total);
|
||||
|
||||
Reference in New Issue
Block a user