Simple Clean Alert Popup For Angular 5+ – NG Alerts

Author: Jaspero
Official Page: Go to website
Publish Date: November 17, 2017
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


You Might Be Interested In:

Tags:

Add Comment