mirror of https://github.com/ghostfolio/ghostfolio
committed by
Thomas Kaul
6 changed files with 41 additions and 2 deletions
@ -1,4 +1,5 @@ |
|||
{ |
|||
"editor.defaultFormatter": "esbenp.prettier-vscode", |
|||
"editor.formatOnSave": true |
|||
"editor.formatOnSave": true, |
|||
"angular.enable-strict-mode-prompt": false |
|||
} |
|||
|
@ -0,0 +1,19 @@ |
|||
import { Injectable } from '@angular/core'; |
|||
import { Subject } from 'rxjs'; |
|||
|
|||
@Injectable({ |
|||
providedIn: 'root' |
|||
}) |
|||
export class LayoutService { |
|||
private shouldReloadSubject = new Subject<void>(); |
|||
|
|||
// Observable stream
|
|||
public shouldReload$ = this.shouldReloadSubject.asObservable(); |
|||
|
|||
constructor() {} |
|||
|
|||
// Method to trigger the reload
|
|||
public triggerReload() { |
|||
this.shouldReloadSubject.next(); |
|||
} |
|||
} |
Loading…
Reference in new issue