Ngx Snackbar Toast Notifications For Angular

Angular 7 Notifications Snackbar (AKA Toast) component can be used to display notification information for a short period of time.

angular material toast vs snackbar, angular material notification, custom snackbar angular, angularmaterial snackbar position, angular snackbar example

Angular ngx Bootstrap Alerts As Notifications Plugin

How to make use of it:


npm install --save ngx-snackbar


import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {AppComponent} from './app.component';
import {SnackbarModule} from 'ngx-snackbar';

  declarations: [
  imports: [
  bootstrap: [AppComponent]
export class AppModule {}


Use these properties to customize the snackbar component.

positionThe position where the snackbar appearstop-lefttop-centertop-rightbottom-leftbottom-centerbottom-rightbottom-righttrue
maxThe maximum number of snackbars allowed on screennumber(Infinite)true
timeoutNumber of milliseconds before the snackbar closesnumber(Infinite)true
colorText color in hexstringautotrue
backgroundBackground color in hexstring#343434true
customClassCustom class to append to the snackbarstring true
accentAction button color. Requires action.textstring#2196f3true


onAddCallback gets triggered on snackbar addObject
onRemoveCallback gets triggered on snackbar removeObject
onClearCallback gets triggered on snackbar clearboolean

Snackbar angular Notification Component, ngx-snackbar Plugin/Github

See Demo And Download

Official Website(dank): Click Here

This superior jQuery/javascript plugin is developed by dank. For extra Advanced Usages, please go to the official website.

Related Posts


Create Side Sliders Input Values Using Mouse Drag | Pointer Lock

HTML Range Slider is a lightweight library to create side sliders to adjust values easily and precisely by making use of the Pointer Lock API. Side Slider…


Smooth and Lightweight Parallax Scroll Library in Pure Javascript

Lightweight and seamless parallax scrolling library implemented in pure javascript using hardware acceleration for additional performance. Main Features Extremely lightweight with no dependencies A few kilobytes of pure…


How to Convert Form Data to JSON with HTML Forms | FormsJS

FormsJS is a simple-to-use JavaScript library that covers type subject values to JSON in real time. The items containing the data category will be analyzed automatically. It…


A Small jQuery Extension to Convert An Editable HTML Table

Editable Table is a small jQuery extension to convert an editable HTML table for fast data entry and validation. A small jQuery extension to convert a static…

Simple jQuery Plugin for Embedding YouTube Videos As Cover Background is a jQuery plugin built to facilitate YouTube embeds as cover wallpaper using the YouTube Embed API. There is another jQuery Youtube Video Background plugin that…


Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…