booble-toast
v1.0.3
Published
Simple toast message notification for angular
Downloads
8
Maintainers
Readme
Installing
$ npm install --save booble-toastGithub
https://github.com/ricksonsa/booble-toast
Usage
import { ToastService, ToastOptions, ToastEnum } from 'booble-toast';
constructor(private toastService: ToastService) {
}
showToast(message: string) {
this.toastService.showToast(new ToastOptions(message, ToastEnum.SUCCESS, true, 3000));
}ToastOptions receives 4 parameters: mesage, ToastEnum(css class), hasCloseButton (optional default false), time (optional default 5000)
