You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this has been covered, but I'm hoping you can help:
I'm trying to control a Modal from a service. I know you have docs for controlling it from a it's parent component, but what if you wanted a larger service controlling it?
You should look into @ngrx/store. Idea is that you have a global holding place for what ever you want. In this example, when ever you need to show your modal window you tell the store, update it, and make sure modal window is listening (subscribed) to these changes. Hope this helps.
Not sure if this has been covered, but I'm hoping you can help:
I'm trying to control a Modal from a service. I know you have docs for controlling it from a it's parent component, but what if you wanted a larger service controlling it?
Ie.
A notification service
where every other component could use a service to control the my-notification component?
I haven't been able to find a way to access the modal inside my-notification from another component, any thoughts?
The text was updated successfully, but these errors were encountered: