simplify-angular
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.0.0.
25 lines (24 loc) • 1.27 kB
TypeScript
import { ApplicationRef, ComponentFactoryResolver, Injector, RendererFactory2 } from '@angular/core';
import { ToastrService } from 'ngx-toastr';
import { SimpleAlertConfig } from '../configs/models';
import * as i0 from "@angular/core";
export declare class SimpleAlertService {
private toastr;
private injector;
private appRef;
private componentFactoryResolver;
private rendererFactory;
static initialized: boolean;
static instance: any;
constructor(toastr: ToastrService, injector: Injector, appRef: ApplicationRef, componentFactoryResolver: ComponentFactoryResolver, rendererFactory: RendererFactory2);
confirmPopup(message: string, config?: SimpleAlertConfig): void;
confirmDelete(message: string, config?: SimpleAlertConfig): void;
error(message: string, config?: SimpleAlertConfig): void;
info(message: string, config?: SimpleAlertConfig): void;
notify(message: string, config?: SimpleAlertConfig): void;
private setupNgxSoonerInstance;
success(message: string, config?: SimpleAlertConfig): void;
warning(message: string, config?: SimpleAlertConfig): void;
static ɵfac: i0.ɵɵFactoryDeclaration<SimpleAlertService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<SimpleAlertService>;
}