ng-pop-alert
Version:
This is an angular Notification or Alert . it help you to notify messages to users of your application in every state it is required.
46 lines (45 loc) • 1.46 kB
TypeScript
import { ValidationErrorService } from './validation-error.service';
import { AlertEventService } from './alert.event.service';
import { SafeHtml } from '@angular/platform-browser';
import { Alert } from './ng-pop-alert.interface';
export declare class NgPopAlertService {
private validationError;
private alertEventService;
alert: Alert;
constructor(validationError: ValidationErrorService, alertEventService: AlertEventService);
/**
* Success Alert
* @param message
* @returns {{message: string, alert_class: string}}
*/
success(message: SafeHtml | string): Alert;
/**
* Info Alert
* @param message
* @returns {{message: string, alert_class: string}}
*/
info(message: SafeHtml | string): Alert;
/**
* Warning Alert
* @param message
* @returns {{message: string, alert_class: string}}
*/
warning(message: SafeHtml | string): Alert;
/**
* Error Alert
* @param defaultMessage
* @param data
* @returns {{message: string, alert_class: string}}
*/
error(defaultMessage: SafeHtml | string, data?: String | Object | Array<SafeHtml | string> | Array<Object>): Alert;
/**
* This is used to clear alert from display
*/
clear(): void;
/**
* This is used to display Error message
* @param data
* @param message
*/
private showError(data, message);
}