0.0.11 • Published 2 years ago
@ai-media-lib/notifications v0.0.11
Error and info messages notifications library, based on ngx-toastr.
Shows toast messages
Usage
import in root module
@NgModule({
.....
import:[
NotificationsModule.forRoot(),
....
]
})
inject and use
...
constructor(
private notifications: NotificationsService,...)
...
this.notifications.error('Show error message');
...
this.notifications.info('Show info');
...
this.notifications.message('Show regular message');