angular-toastr icon indicating copy to clipboard operation
angular-toastr copied to clipboard

Second argument is necessary in order for options to be read

Open BotchTheCrab opened this issue 4 years ago • 0 comments

Under Toastr customization, regarding passing custom options to an individual toast message call, it says:

The second option is to pass a third parameter (or second if you don't need a title). Let see some examples:

However, my testing confirms that this is not the case. If a title is omitted and the options object is passed as the second argument, it is ignored. If a title is not desired, the workaround is to pass an empty string.

I think passing an empty string is perfectly fine, I just wanted to note that, assuming I'm correct, the documentation should be slightly tweaked.

Thank you for this project! It is very helpful.

BotchTheCrab avatar Oct 27 '21 18:10 BotchTheCrab