src/app/service/popup-control.service.ts
constructor()
|
changePopupStatus |
changePopupStatus(value: boolean)
|
Returns:
void
|
Public checkPopupStatus |
checkPopupStatus: |
Private popupSource |
popupSource: |
import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class PopupControlService {
private popupSource = new BehaviorSubject(true);
public checkPopupStatus = this.popupSource.asObservable();
constructor() { }
changePopupStatus(value: boolean) {
this.popupSource.next(value);
}
}