scenius-software / angular-toastify

A somewhat minimalistic clone of React Toastify.
https://scenius-software.github.io/angular-toastify/
17 stars 5 forks source link

when rendering many lib-toastify-toast-container they will be called as one element even though there's to many of them ? in each component #52

Closed elhajoujy closed 10 months ago

Lerke commented 11 months ago

Hey @elhajoujy - I haven't tested this, but if you have multiple toast-containers, then I expect you'll get 1 toast per container, since they all listen to the same singleton service which actually provides the toasts. The intended way to use the container is to have just one instance of it at the top level of your application (e.g. in app.component)

elhajoujy commented 11 months ago

Yes, you're correct. I only had to set up the container once on the parent, and I've had it working seamlessly since then.

Lerke commented 10 months ago

Cool - I assume this can be closed then.