feat: started manhwa scrolling

This commit is contained in:
2024-07-10 23:33:40 +03:00
parent 03b200c829
commit ccbd9b2f5c
2 changed files with 33 additions and 4 deletions

View File

@@ -1,11 +1,11 @@
import { Injectable } from "@angular/core";
import { Injectable, OnDestroy } from "@angular/core";
import { Subject } from "rxjs";
import { INotification } from "./notification.dto";
@Injectable({
providedIn: "root",
})
export class NotificationService {
export class NotificationService implements OnDestroy {
readonly notification$ = new Subject<INotification>();
private sendNotification(message: INotification) {
@@ -29,4 +29,8 @@ export class NotificationService {
name: title,
});
}
ngOnDestroy(): void {
this.notification$.complete();
}
}