Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access particular NotifierNotificationComponent to subscribe for dismiss event #206

Open
yshukh opened this issue Apr 27, 2021 · 1 comment
Labels
type: feature Indicates a feature or enhancement

Comments

@yshukh
Copy link

yshukh commented Apr 27, 2021

Hello,

Could someone advise is it possible to subscribe for the dismiss event from outer app?

More details: I use custom template and I pass the notification context which is typeof NotifierNotificationOptions. Then, as I've seen, passed context gets processed somehow and in the end there is field public notification: NotifierNotification; in the NotifierNotificationComponent. NotifierNotification contains the reference to the component, so the logical question: is it possible to access that field containing component reference from custom template using context variable?
I'm asking 'cause I haven't found where that field gets initialized; for me seems it should be initialized either in the ngAfterViewInit() or in the setup() which is also within ngAfterViewInit()

@yshukh
Copy link
Author

yshukh commented Apr 27, 2021

Other words: if I set breakpoint to the ngAfterViewInit():126, then this.notification.component is undefined. Seems missed init for this field

@dominique-mueller dominique-mueller added the type: feature Indicates a feature or enhancement label May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Indicates a feature or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants