BootstrapToast for Angular 2+
Simple toast library for Angular 2+ with Bootstrap 4. See this demo and try options.
Requirements
Must be install the following npm packages:
- bootstrap
Installation
npm install --save bootstrap-toast
Import bootstrap-toast
module your ngModule.
Paste the following code the end of the app.component.html file:
The config parameter is optional but if you want to modify default config, you use the following format:
The following example shows how to create a toast notification programatically. The function returns Subject instance. If the notification has one or more buttons, you can subscribe this instance to catch button actions.
this.toast.create .subscribe
Thats all.