Add configuration to launch Metadata Center as a dialog or full-page route
This commit is contained in:
@@ -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