src/app/service/popup-control.service.ts
Properties |
|
Methods |
constructor()
|
Defined in src/app/service/popup-control.service.ts:10
|
changePopupStatus | ||||||
changePopupStatus(value: boolean)
|
||||||
Defined in src/app/service/popup-control.service.ts:14
|
||||||
Parameters :
Returns :
void
|
Public checkPopupStatus |
Default value : this.popupSource.asObservable()
|
Defined in src/app/service/popup-control.service.ts:10
|
Private popupSource |
Default value : new BehaviorSubject(true)
|
Defined in src/app/service/popup-control.service.ts:9
|
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);
}
}