Search code examples
angularwebpackangular-elementsmicro-frontend

How to Implement Micro Frontend in Angular (Alternative to Iframe)


we are trying to implement micro-frontend concept in Angular, where we have 2 angular applications App1 and App2 both separate project running individually on their own server. we want to integrate App2 inside a component of App1 on button click event, we have currently implemented this with Iframe but we want to implement this in a micro-fronted approach.

any help or advice would be greatly appreciated.


Solution

  • You can use webpack5 module federation for implementing that because it will be part of upcoming angular releases as well. For how to use refer to :- https://www.angulararchitects.io/aktuelles/the-microfrontend-revolution-part-2-module-federation-with-angular/