mirror of https://github.com/ghostfolio/ghostfolio
Martin Mui
12 months ago
committed by
GitHub
6 changed files with 42 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||||
|
import { Injectable } from '@angular/core'; |
||||
|
import { Observable, Subject } from 'rxjs'; |
||||
|
|
||||
|
@Injectable({ |
||||
|
providedIn: 'root' |
||||
|
}) |
||||
|
export class LayoutService { |
||||
|
public shouldReloadContent$: Observable<void>; |
||||
|
|
||||
|
private shouldReloadSubject = new Subject<void>(); |
||||
|
|
||||
|
public constructor() { |
||||
|
this.shouldReloadContent$ = this.shouldReloadSubject.asObservable(); |
||||
|
} |
||||
|
|
||||
|
public getShouldReloadSubject() { |
||||
|
return this.shouldReloadSubject; |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue