all files / core/services/ vg-controls-hidden.ts

100% Statements 12/12
100% Branches 0/0
100% Functions 3/3
100% Lines 11/11
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30           26×   26×                          
import { Subject } from 'rxjs/Subject';
import { Observable } from 'rxjs/Observable';
import { Injectable } from '@angular/core';
 
 
export class VgControlsHidden {
    isHidden: Observable<boolean>;
 
    private isHiddenSubject: Subject<boolean> = new Subject<boolean>();
 
    constructor() {
        this.isHidden = this.isHiddenSubject.asObservable();
    }
 
    state(hidden: boolean) {
        this.isHiddenSubject.next(hidden);
    }
static decorators: DecoratorInvocation[] = [
{ type: Injectable },
];
/** @nocollapse */
static ctorParameters: ({type: any, decorators?: DecoratorInvocation[]}|null)[] = [
];
}
 
interface DecoratorInvocation {
  type: Function;
  args?: any[];
}