Implement Bookdrop: Watch folder for file drops and auto-process uploads
This commit is contained in:
committed by
Aditya Chandel
parent
5064706b8f
commit
177528e640
@@ -0,0 +1,15 @@
|
||||
import {Injectable} from '@angular/core';
|
||||
import {Subject} from 'rxjs';
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class BookMetadataHostService {
|
||||
private bookSwitchRequest$ = new Subject<number>();
|
||||
|
||||
requestBookSwitch(bookId: number) {
|
||||
this.bookSwitchRequest$.next(bookId);
|
||||
}
|
||||
|
||||
get bookSwitches$() {
|
||||
return this.bookSwitchRequest$.asObservable();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user