Closed oliverbj closed 1 year ago
The Toaster.success
is not referring to what you think it's referring to within this particular scope.
Toaster
here is the Alpine plugin, which is not what you want.
Use window.Toaster
or globalThis.Toaster
to access the global Toaster singleton.
Hi.
How can I trigger toasts from plain javascript, like:
I get this error:
Toaster.success is not a function