@angular-architects/microapp
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-beta.4 • Public • Published

@angular-architects/microapp

This library support Micro App frontend development.

Supported features

  • Multi Router support in the same window object
  • Support for Angular 13+
  • Messaging API based on CustomEvents
    • influenced by RxJS and NgRx Action Creators
  • Deep Linking across different Micro Apps

Roadmap

  • Named router outlets w/i an Angular app
  • Support for different versions and environment configs
  • Headless shell infrastructure
  • Cross tech support
    • React, Vue, AngularJS
  • Distributed State Management

Setup

Install node_module

npm install @angular-architects/microapp 

Shell

@NgModule({
  declarations: [AppComponent],
  imports: [
    BrowserModule,
    MicroAppRoutingModule.forShell({ name: 'shell' }),
    AppRoutingModule
  ],
  bootstrap: [AppComponent],
})
export class AppModule {}

Micro App

@NgModule({
  declarations: [AppComponent],
  imports: [
    BrowserModule,
    MicroAppRoutingModule.forMicroApp({ name: 'microapp' }),
    AppRoutingModule
  ],
  bootstrap: [AppComponent],
})
export class AppModule {}

Routing

Use normal Angular route definitions and the routerLink Directive.

Deeplinking from Shell to Micro App

<a [routerLink]="[{ outlets: { 'microapp': 'mypath' }}]">Deeplink from Shell to Micro App -> mypath</a>

Experimental string-based Deeplinking from Shell to Micro App

<a routerLink="(microapp:mypath)">Deeplink string from Shell to Micro App -> mypath</a>

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @angular-architects/microapp

    Weekly Downloads

    1

    Version

    1.0.0-beta.4

    License

    MIT

    Unpacked Size

    117 kB

    Total Files

    31

    Last publish

    Collaborators

    • lx_t
    • daniel.murrmann
    • mikezks
    • rainerhahnekamp-aa
    • manfred.steyer