UNPKG

leaf-framework

Version:
22 lines 778 B
import { Injectable } from '@angular/core'; import { Subject } from 'rxjs/Subject'; var SpinnerService = /** @class */ (function () { function SpinnerService() { this.spinnerSubject = new Subject(); this.spinnerState = this.spinnerSubject.asObservable(); } SpinnerService.prototype.show = function () { this.spinnerSubject.next({ show: true }); }; SpinnerService.prototype.hide = function () { this.spinnerSubject.next({ show: false }); }; SpinnerService.decorators = [ { type: Injectable }, ]; /** @nocollapse */ SpinnerService.ctorParameters = function () { return []; }; return SpinnerService; }()); export { SpinnerService }; //# sourceMappingURL=spinner.service.js.map