Closed parker-mike closed 2 months ago
I would also be grateful for an example where you can see the creation of dynamic routes
Hi,
ad 1) Please find an example here: https://www.angulararchitects.io/blog/micro-frontends-with-modern-angular-part-2-multi-version-and-multi-framework-solutions-with-angular-elements-and-web-components/
ad 2) That's right. Instead of loadManifest and setManifest, you can use the overloads of initFederation
ad 3) Yes, that's right
Best wishes, Manfred
The ReadMe of Native Federation for Angular states, that to switch over, from @angular-architects/module-federation to @angular-architects/native-federation, we have just to make sure we import everything from the later package, since it uses the same API as @angular-architects/module-federation. Unfortunately it seems to be not as straight forward as said:
initFederation
lacks theskipRemoteEntries
argument.getManifest
,loadManifest
and thesetManifest
seems to also be missing.loadRemoteEntry
.Going "Dynamic Dynamic"
section, with Custom Configuration Types, Custom Manifest Metadata, Dynamically Creating Routes etc.?loadRemoteEntry
can be replaced withloadRemoteModule
with aLoadRemoteModuleOptions
as parameter, am I right?