dominique-mueller / angular-notifier

A well designed, fully animated, highly customizable, and easy-to-use notification library for your Angular application.
https://www.npmjs.com/package/angular-notifier
MIT License
247 stars 68 forks source link

Notifications not showing #242

Open vytautas-pranskunas- opened 2 years ago

vytautas-pranskunas- commented 2 years ago

Hello,

i have complex project with OnPush change detections and lazy loaded routes. If i keep notification-container in app.component.html - notifications does not show when triggered from different services If i put notification-container to first neseted route - Layout - notifications starting to come up. I would like to keep it in app.component.html because i can have multiple layouts and would not like to init notificationModule in each of those.

vytautas-pranskunas- commented 2 years ago

Hello,

i still strugling to get i working... notifications just do not show.. my best guess that it is becaus eog lazy loaded modules. Because usually with lazy loaded models libraries has .forChild() ...

vytautas-pranskunas- commented 2 years ago

p.s. i have made a workaround for now - have intorduced my own service which emits notification. In app.component there is a subscription that listens for those emits and triggers notifier :( ugly but working