lct-components
Version:
LCT basic components
17 lines (16 loc) • 713 B
TypeScript
import { ComponentFactoryResolver, ApplicationRef, Injector } from '@angular/core';
import * as i0 from "@angular/core";
export declare class ToastService {
private componentFactoryResolver;
private appRef;
private injector;
private toastsSubject;
toasts$: import("rxjs").Observable<any[]>;
private componentRef;
constructor(componentFactoryResolver: ComponentFactoryResolver, appRef: ApplicationRef, injector: Injector);
showToast(message: string, type?: string, duration?: number): void;
removeToast(toast: any): void;
clearToasts(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
}