Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static msg(msg, type) {
type = type || 'info';
var config = {
timeOut: type == "error" ? 6000 : 3000,
positionClass: "toast-top-center",
closeButton: true,
newestOnTop: false,
type: type
};
var toastr = new ToasterService();
toastr.pop(config);
// toastr.options = {
// timeOut: type == 'error' ? '6000' : '3000',
// positionClass: "toast-top-center",
// closeButton: true,
// newestOnTop: false
// }
//toastr[type](msg, "")
}
}