Create and display dismissable notifications for Angular 8. Built with Bootstrap and Akita.
Run npm install --save ngx-notification-tray
Module Installation:
import { NotificationTrayModule } from 'ngx-notification-tray';
...
providers: [NotificationTrayModule]
Add to component:
<lib-notification-tray></lib-notification-tray>
In your component or service, load the NotificationTrayService
constructor(
private notificationTrayService: NotificationTrayService
)
this.notificationService.push('test notification');
this.notificationService.push('item saved', 'Title:', 'warning');