1 import { Injectable, TemplateRef } from '@angular/core';
6 export class ToastService {
9 show(textOrTpl: string | TemplateRef<any>, options: any = {}) {
10 this.toasts.push({ textOrTpl, ...options });
14 this.toasts = this.toasts.filter(t => t !== toast);