- 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
+5 -3
View File
@@ -1,4 +1,4 @@
import {Component, OnInit} from '@angular/core';
import {Component, inject, OnInit} from '@angular/core';
import {RxStompService} from './shared/websocket/rx-stomp.service';
import {Message} from '@stomp/stompjs';
import {BookService} from './book/service/book.service';
@@ -17,8 +17,10 @@ import {AppSettingsService} from './core/service/app-settings.service';
})
export class AppComponent implements OnInit {
constructor(private bookService: BookService, private rxStompService: RxStompService, private eventService: EventService) {
}
private bookService = inject(BookService);
private rxStompService = inject(RxStompService);
private eventService = inject(EventService);
ngOnInit(): void {