ngx-msg
Version:
Angular notification component
18 lines • 559 B
JavaScript
import { Injectable, EventEmitter, Output } from "@angular/core";
export var NgxMsgService = (function () {
function NgxMsgService() {
this.newMessage = new EventEmitter();
}
NgxMsgService.prototype.message = function (msg) {
this.newMessage.emit(msg);
};
NgxMsgService.decorators = [
{ type: Injectable },
];
NgxMsgService.ctorParameters = [];
NgxMsgService.propDecorators = {
'newMessage': [{ type: Output },],
};
return NgxMsgService;
}());
//# sourceMappingURL=ngx-msg.service.js.map