File

src/app/service/popup-control.service.ts

Constructor

constructor()

Methods

changePopupStatus
changePopupStatus(value: boolean)
Returns: void

Properties

Public checkPopupStatus
checkPopupStatus: Observable<boolean>
Private popupSource
popupSource: BehaviorSubject<boolean>
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);
  }

}

results matching ""

    No results matching ""