notification(message:string,type:number)
{
//this.toastyService.default(message);
// Or create the instance of ToastOptions
var toastOptions:ToastOptions = {
title: "???",
msg: message,
showClose: true,
timeout: 5000,
theme: 'default',
onAdd: (toast:ToastData) => {
console.log('Toast ' + toast.id + ' has been added!');
},
onRemove: function(toast:ToastData) {
console.log('Toast ' + toast.id + ' has been removed!');
}
};
// Add see all possible types in one shot
switch(type)
{
case Atom.INFO: toastOptions.title=this.getTrad("Info"); this.toastyService.info(toastOptions);break;
case Atom.WARNING: toastOptions.title=this.getTrad("Warning"); this.toastyService.warning(toastOptions);break;
case Atom.ERROR: toastOptions.title=this.getTrad("Error"); this.toastyService.error(toastOptions);break;
case Atom.SUCCESS: toastOptions.title=this.getTrad("Success"); this.toastyService.success(toastOptions);break;
case Atom.WAIT: toastOptions.title=this.getTrad("Wait"); this.toastyService.wait(toastOptions);break;
}
}
I'm submitting a ... [x] bug report [ ] feature request [ ] question about the decisions made in the repository
Do you want to request a feature or report a bug?
bug
styles are not loading
had a project using ng2-toasty, upgraded to ngx-toasty, apparentlyt no change need to be made but styles do not load
load styles
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
in app.component.ts :
import 'ngx-toasty/style-default.css';
code that used to work: