13.0.0 • Published 3 years ago

microfrontend-extensions v13.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Micro-Frontend Extensions

Just-in-time renderer for dynamic Angular components bundled with Module Federation.

Prerequisites

The package requires the following peer dependencies:

{
  "@angular/common": "^12.0.0",
  "@angular/core": "^12.0.0",
  "@angular-architects/module-federation": "^14.1.0"
}

Usage

Initialize your dynamic configuration:

const config: RemoteOutletConfig = {
  remoteEntry: "https://cdn.yourhost.com/remoteEntry.js",
  remoteName: "example_remote",
  module: "ExampleModule",
  component: "ExampleComponent",
  placeholder: {
    minHeight: 220
  }
}

Where

  • remoteEntry: URL to the main bundle from your Micro-Frontend
  • remoteName: name you've set as output.uniqueName in your Webpack Config
  • module: name of the NgModule that declares the providers and imports of your component
  • component: name of the Component you want to render
  • placeholder: dimensions of the placeholder-container shown during loading

Then, add this component to the Angular-Template where you want to render your dynamic Micro-Frontends:

<remote-outlet [config]="config"></remote-outlet>

13.0.0

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.16

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.10

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago