leaf-framework
Version:
Light Everis Angular Frontend Framework
28 lines • 987 B
JavaScript
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs/Subject';
var MessageService = (function () {
function MessageService() {
this.subjectMsg = new Subject();
this.subjectConfirmed = new Subject();
}
MessageService.prototype.showMessage = function (message) {
this.subjectMsg.next(message);
};
MessageService.prototype.confirmMessage = function (value) {
this.subjectConfirmed.next(value);
};
MessageService.prototype.getMessage = function () {
return this.subjectMsg.asObservable();
};
MessageService.prototype.getConfirmed = function () {
return this.subjectConfirmed.asObservable();
};
MessageService.decorators = [
{ type: Injectable },
];
/** @nocollapse */
MessageService.ctorParameters = function () { return []; };
return MessageService;
}());
export { MessageService };
//# sourceMappingURL=message.service.js.map