13.0.0 • Published 2 years ago

microfrontend-extensions v13.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.16

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.10

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago