ng2-alert-center
Version:
Alert center provides an alert service and an alert component, you can include in your Angular 2 project.
26 lines • 837 B
JavaScript
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs/Subject';
var AlertCenterService = (function () {
function AlertCenterService() {
this._alerts = new Subject();
}
Object.defineProperty(AlertCenterService.prototype, "alerts", {
get: function () {
return this._alerts;
},
enumerable: true,
configurable: true
});
AlertCenterService.prototype.alert = function (anAlert) {
console.log('sending alert: ' + JSON.stringify(anAlert));
this._alerts.next(anAlert);
};
return AlertCenterService;
}());
export { AlertCenterService };
AlertCenterService.decorators = [
{ type: Injectable },
];
/** @nocollapse */
AlertCenterService.ctorParameters = function () { return []; };
//# sourceMappingURL=alert-center.service.js.map