ng2-timeout-dialog
Version:
Timeout dialog for Angular
25 lines • 807 B
JavaScript
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