All files window.service.ts

100% Statements 11/11
100% Branches 0/0
100% Functions 4/4
100% Lines 9/9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 182x 2x     2x   10x     2x 7x     2x 4x   2x  
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs';
 
@Injectable()
export class NgxMaterialWindowService {
 
  overlaySubject: Subject<Event> = new Subject<Event>();
  showOverlay: Function;
 
  setOverlayFunction(cb: Function) {
    this.showOverlay = cb;
  }
 
  getOverlaySubject() {
    return this.overlaySubject;
  }
}