Press "Enter" to skip to content

Simple Alert Component To Handle Different Types Of Alerts And Confirmation

NgAlert is a simple alert component, to help show you different levels of alerts and easy configurations about how you want them to behave. It also supports confirmation alerts.

angular alert popup message example, angular alert message on click, angular notification component, alert message in angular material, angular alert service

How to make use of it:

Installation

npm install --save @theo4u/ng-alert

Usage

<ng-alert [(message)]="message" [dismissable]="true"></ng-alert>
export interface IMessage {
      type: MessageType,
      message: string,
      title?: string,
      buttons?: Array<{
        label: string,
        action?: Function,
        css?: string
      }>
      }

Confirmation Alert

It can also serve as a confirmation alert, if buttons properties of IMessage is passed in, which is an array

  • label: the text to show for your button
  • action: the action to perform when the button is clicked
  • css: your custom css to pass in, since its just a plain <button></button>

simple alert component for angular, NgAlert Plugin/Github


See Demo And Download

Official Website(theoomoregbee): Click Here

This superior jQuery/javascript plugin is developed by theoomoregbee. For extra advanced usage, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.