Relative Content

Tag Archive for angularwebpackmicro-frontendwebpack-module-federation

Multiple instances of Microfrontend

I’m curious about something and would like to hear some opinions. Imagine I’m working on a microfrontend architecture using Angular. In this setup, I have a shell and a remote (like a card). Let’s say I also have an array of products. Is it considered good practice to show a microfrontend card in the shell for every product in the array (populating the card with the details of the product)? In other words, should I create a separate microfrontend instance for each array element, or should each microfrontend only be instantiated once within the shell project?