Coming from Module Federation?
A working example of Native Federation loading a Micro Frontend into a shell application using Angular.
This is the original webpack Module Federation plugin example, ported to Native Federation v3 — useful if you are arriving from Module Federation and want a familiar starting point. For the guided path instead, see Getting Started — Overview; for upgrade steps to v4, Migration to v4.
A ready-to-run example showing Native Federation in action — loading a Micro Frontend into a shell application.
We migrated the original webpack Module Federation example to Native Federation. The example demonstrates a host (shell) application dynamically loading a remote Micro Frontend at runtime.
Get the Example
Clone the example repository and install dependencies:
git clone https://github.com/manfredsteyer/module-federation-plugin-example.git --branch nf-standalone-solution
cd module-federation-plugin-example
npm i
Run It
Start the Micro Frontend first:
ng serve mfe1 -o
Wait until the Micro Frontend is running, then open a second terminal and start the shell:
ng serve shell -o
The shell will load the Micro Frontend at runtime. Navigate to the second menu item to see the remote component rendered inside the host.
Looking for UI library compatibility? Check the Component Libs page for our demo repository that tests Native Federation with popular Angular UI libraries.