Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A simple microfrontend with anuglar using@angular-architect's schematics. The application exposes two modules from one app (the remote) into a shell (the host).

NotificationsYou must be signed in to change notification settings

lanlugar/module-federation-angular-2modules

Repository files navigation

This examples loads a microfrontend into a shell:

Microfrontend Loaded into Shell

Important Files

Have a particular look at the following files:

  • readme.md: Shows how to install dependencies and how to start the example
  • projects\mfe1\webpack.config.js: Microfrontend config
  • projects\shell\webpack.config.js: Shell config
  • projects\shell\src\app\app.routes.ts: Lazy route for microfrontend
  • projects\shell\src\decl.d.ts: Typing for mapped Url pointing to microfrontend

Installation and Usage

  • Install packages:yarn (!)*
  • Start Micro Frontend (remote):ng serve mfe1 -o
  • Start Shell (host):ng serve shell -o
  • Make suremfe1 is started beforeshell is loaded into the browser
  • Use the hyperlinkflights in theshell to loadmfe1

* Please note, youmust useyarn during the beta phase of CLI 11 b/c it allows to override dependencies to force the CLI into webpack 5.

More Details on Module Federation

Have a look at thisarticle series about Module Federation

Angular Trainings, Workshops, and Consulting

About

A simple microfrontend with anuglar using@angular-architect's schematics. The application exposes two modules from one app (the remote) into a shell (the host).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp