- Refactor to remove BookMetadataBI

- Use inject everywhere instead of constructor injection
This commit is contained in:
aditya.chandel
2025-01-16 00:10:42 -07:00
parent edbb71e8a6
commit 532246b18b
36 changed files with 301 additions and 338 deletions
@@ -1,4 +1,4 @@
import {Component, ElementRef, OnDestroy, OnInit, ViewChild} from '@angular/core';
import {Component, ElementRef, inject, OnDestroy, OnInit, ViewChild} from '@angular/core';
import ePub from 'epubjs';
import {EpubService} from '../service/epub.service';
import {Drawer} from 'primeng/drawer';
@@ -50,9 +50,10 @@ export class EpubViewerComponent implements OnInit, OnDestroy {
{label: 'Sepia', value: 'sepia'}
];
constructor(private epubService: EpubService, private route: ActivatedRoute,
private bookService: BookService, private appSettingsService: AppSettingsService) {
}
private epubService = inject(EpubService);
private route = inject(ActivatedRoute);
private bookService = inject(BookService);
private appSettingsService = inject(AppSettingsService);
ngOnInit(): void {
this.route.paramMap.subscribe((params) => {