UNPKG

ngx-flash-messages

Version:
18 lines 563 B
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