ngx-flash-messages
Version:
Flash messages/notifications for Angular 2+
18 lines • 563 B
JavaScript
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs/Subject';
Injectable();
var FlashMessagesService = (function () {
function FlashMessagesService() {
this.message = new Subject();
}
FlashMessagesService.prototype.show = function (text, options) {
if (options === void 0) { options = {}; }
this.message.next({
text: text,
options: options
});
};
return FlashMessagesService;
}());
export { FlashMessagesService };
//# sourceMappingURL=flash-messages.service.js.map