UNPKG

gamebench-ng-toasty

Version:

Angular2 Toasty component shows growl-style alerts and messages for your web app - now with more clicking!

23 lines (22 loc) 787 B
// Copyright (C) 2016-2017 Sergey Akopkokhyants // This project is licensed under the terms of the MIT license. // https://github.com/akserg/ng2-toasty import { DomSanitizer } from '@angular/platform-browser'; import { Pipe } from '@angular/core'; var SafeHtmlPipe = /** @class */ (function () { function SafeHtmlPipe(domSanitized) { this.domSanitized = domSanitized; } SafeHtmlPipe.prototype.transform = function (value) { return this.domSanitized.bypassSecurityTrustHtml(value); }; SafeHtmlPipe.decorators = [ { type: Pipe, args: [{ name: 'safeHtml' },] }, ]; /** @nocollapse */ SafeHtmlPipe.ctorParameters = function () { return [ { type: DomSanitizer } ]; }; return SafeHtmlPipe; }()); export { SafeHtmlPipe };