Share a service instance between multiple microfrontends in Angular

44 Views Asked by At

I have a project in which I created 2 angular microfrontends that use module federation. For simplicity I will call them mfe1 and mfe2.

The mfe1 inside it opens the mfe2 always by module federation.

I have a custom angular library that exposes a service, I would like this service to have only one instance shared between mfe1 and mfe2.

It's possible ?

0

There are 0 best solutions below