import { Injectable } from "@angular/core"; import { BehaviorSubject, Observable } from "rxjs"; @Injectable({ providedIn: "root" }) export class QuickContactService { private display: BehaviorSubject = new BehaviorSubject(true); public get isDisplayed(): Observable { return this.display.asObservable(); } public setDisplay(display: boolean) { this.display.next(display); } }