module-federation-examples icon indicating copy to clipboard operation
module-federation-examples copied to clipboard

Dynamic exposes apps

Open gasymov-rustam opened this issue 3 years ago • 1 comments

Hi, I was using dynamic example for get all aps in my host using function loadcomponent(low level api). Now i need to send from my host what i want to exposes in my child apps using global object window or in some other way. its meant that i want dynamic exposes and send components on demand or according to the configuration

Thanks a lot.

gasymov-rustam avatar Jul 15 '22 04:07 gasymov-rustam

Look at module-federation/enhanced to see how you can do that.

I’d also track what remotes you have so you can loop over all known remotes and call the expose list from them all

ScriptedAlchemy avatar Jul 26 '22 04:07 ScriptedAlchemy