File

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

Index

Properties
Methods

Constructor

constructor()

Methods

changePopupStatus
changePopupStatus(value: boolean)
Parameters :
Name Type Optional
value boolean No
Returns : void

Properties

Public checkPopupStatus
Default value : this.popupSource.asObservable()
Private popupSource
Default value : new BehaviorSubject(true)
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 ""