Simple Clean Alert Popup For Angular 5+ – NG Alerts

Author: Jaspero
Publish Date:
Official Page: Go to website
Views Total: 4,743
License: MIT

Description:

NG Alerts is a simple, clean, customizable alert popup library for Angular.js 5+.

Installation:

# NPM
$ npm install @jaspero/ng-alerts --save

Usage:

Import the NG Alerts module.

@NgModule({
    imports: [
        JasperoAlertsModule.forRoot()
    ],
    declarations: [AppComponent],
    bootstrap: [AppComponent]
})
export class AppModule {}

Create the component.

<jaspero-alerts [defaultSettings]="options"></jaspero-alerts>

Options and defaults.

AlertSettings = {
  overlay: true,
  overlayClickToClose: true,
  showCloseButton: true,
  duration: 3000
};

Preview:

NG Alerts

Tags:

Add Comment