manfredsteyer / module-federation-with-angular-dynamic

Dynamic Module Federation with Angular
121 stars 67 forks source link

Consume react remote using dynamic module federation #27

Open harshavb7 opened 3 years ago

harshavb7 commented 3 years ago

I have been trying to integrate react mfe into angular shell using dynamic federation approach. But its failing in loadRemoteModule function as react doesn't have valid ngModuleName, Can someone help in guiding me in integrating react mfe into angular shell using dynamic federation.

Sakol538 commented 1 year ago

In shell project, may configure on route as below { path: 'react', component: WebComponentWrapper, data: { type: 'script', remoteEntry: 'https://witty-wave-0a695f710.azurestaticapps.net/remoteEntry.js', remoteName: 'react', exposedModule: './web-components', elementName: 'react-element', } as WebComponentWrapperOptions, }

babandeepsingh commented 1 year ago

Do we have react repo available for react example to be added to angular project?