UNPKG

ng2-timeout-dialog

Version:
25 lines 807 B
import { Injectable } from '@angular/core'; import { BehaviorSubject } from 'rxjs/BehaviorSubject'; var TimeoutService = (function () { function TimeoutService() { this.$timeout = new BehaviorSubject(false); } Object.defineProperty(TimeoutService.prototype, "timeoutObservable", { get: function () { return this.$timeout.asObservable(); }, enumerable: true, configurable: true }); TimeoutService.prototype.setState = function (val) { this.$timeout.next(val); }; TimeoutService.decorators = [ { type: Injectable }, ]; /** @nocollapse */ TimeoutService.ctorParameters = function () { return []; }; return TimeoutService; }()); export { TimeoutService }; //# sourceMappingURL=timeout.service.js.map