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
Hi,
In my module federation app, I want to expose a service from my remotes to the shell app.
The reason I'm doing this is that I want to call this service at the start for all my remote apps. (some of them never be used, but the service is needed)
currently I am doing something like this:
But this approach is causing problems like the name of the service should be the same in all remote apps or I can't use dependency injection(I should pass the dependencies myself and for some of them I can't do that) and overall doesn't look like a good practice.
what is the best way to achieve this? is sharing a whole module the way to go? if it is, how it is implemented.
any help, sample or reference is very much appreciated.
The text was updated successfully, but these errors were encountered:
Hi,
In my module federation app, I want to expose a service from my remotes to the shell app.
The reason I'm doing this is that I want to call this service at the start for all my remote apps. (some of them never be used, but the service is needed)
currently I am doing something like this:
But this approach is causing problems like the name of the service should be the same in all remote apps or I can't use dependency injection(I should pass the dependencies myself and for some of them I can't do that) and overall doesn't look like a good practice.
what is the best way to achieve this? is sharing a whole module the way to go? if it is, how it is implemented.
any help, sample or reference is very much appreciated.
The text was updated successfully, but these errors were encountered: