UNPKG

ngx-toasty

Version:

Angular Toasty component shows growl-style alerts and messages for your web app

24 lines (23 loc) 754 B
import { DomSanitizer } from '@angular/platform-browser'; import { Pipe } from '@angular/core'; var SafeHtmlPipe = (function () { function SafeHtmlPipe(domSanitized) { this.domSanitized = domSanitized; } SafeHtmlPipe.prototype.transform = function (value) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } return this.domSanitized.bypassSecurityTrustHtml(value); }; SafeHtmlPipe.decorators = [ { type: Pipe, args: [{ name: 'safeHtml' },] }, ]; /** @nocollapse */ SafeHtmlPipe.ctorParameters = function () { return [ { type: DomSanitizer, }, ]; }; return SafeHtmlPipe; }()); export { SafeHtmlPipe };