Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Maintainable Client Architecture w/ Micro-Apps and Angular Elements @ JOIN 2018, Belgium, October 2018

Maintainable Client Architecture w/ Micro-Apps and Angular Elements @ JOIN 2018, Belgium, October 2018

Presentation from JOIN 2018 in Belgium, October 2018

Contents:
- Micro Apps
- Web Components/ Custom Elements
- Implementing Micro Apps with Angular Elements

# Samples
https://github.com/manfredsteyer/Angular_MicroApps_Different_Technologies

# More Information and Workshops:
https://www.softwarearchitekt.at

Manfred Steyer

October 04, 2018
Tweet

More Decks by Manfred Steyer

Other Decks in Programming

Transcript

  1. @ManfredSteyer About me… • Manfred Steyer • SOFTWAREarchitekt.at • Angular

    Trainings and Consultancy • Google Developer Expert (GDE) Page ▪ 2 Manfred Steyer Public: Munich, November 2018 Early-Bird Tickets available now! Discount Code: ngMunich (15%) In-House: everywhere http://www.softwarearchitekt.at/workshops
  2. @ManfredSteyer ✓ Commodore 64 ✓ 1982 ✓ ~ 1 MHz

    ✓ 64 KB RAM ✓ Disks with 170 KB
  3. @ManfredSteyer µService Providing a (SPA based) Shell µApp µApp µApp

    Shell ✓ iframes ✓ Bootstrapping several SPAs ✓ Web Components
  4. @ManfredSteyer µService µApp3 µApp2 µApp1 Shell Web Components for Macro-Architecture

    Shared Widget Shared Widget Shared Widget Web Components for Micro-Architecture
  5. @ManfredSteyer Shadow DOM • Baked-in • Default: Emulation • @Component({

    encapsulation: ViewEncapsulation.Emulated }) • Shadow DOM • @Component({ encapsulation: ViewEncapsulation.Native }) • Can be turned off: • @Component({ encapsulation: ViewEncapsulation.None })
  6. @ManfredSteyer MicroApp as Angular Elements @NgModule({ imports: [BrowserModule], declarations: [MicroAppComponent],

    bootstrap: [], entryComponents: [MicroAppComponent] }) export class AppModule { }
  7. @ManfredSteyer MicroApp as Angular Elements @NgModule({ imports: [BrowserModule], declarations: [MicroAppComponent],

    bootstrap: [], entryComponents: [MicroAppComponent] }) export class AppModule { }
  8. @ManfredSteyer MicroApp as Angular Elements @NgModule({ imports: [BrowserModule], declarations: [MicroAppComponent],

    bootstrap: [], entryComponents: [MicroAppComponent] }) export class AppModule { constructor(private injector: Injector) { } ngDoBootstrap() { } }
  9. @ManfredSteyer MicroApp as Angular Elements @NgModule({ imports: [BrowserModule], declarations: [MicroAppComponent],

    bootstrap: [], entryComponents: [MicroAppComponent] }) export class AppModule { constructor(private injector: Injector) { } ngDoBootstrap() { const MicroAppElement = createCustomElement( MicroAppComponent, { injector: this.injector }); customElements.define('micro-app', MicroAppElement); } }
  10. @ManfredSteyer Blog > SOFTWAREarchitekt.at • A Software Architect's Approach Towards

    Using Angular (And SPAs In General) For Microservices Aka Microfrontends • Micro Apps With Web Components Using Angular Elements • Angular Elements: A dynamic Dashboard … • Angular, React, Vue.Js And Co. Peacefully United Thanks To Micro Apps And Web Components
  11. @ManfredSteyer Contact and Downloads [mail] [email protected] [web] SOFTWAREarchitekt.at [twitter] ManfredSteyer

    d Slides & Examples Munich, November 2018 or In-House Early-Bird Tickets available now! Discount Code: ngMunich (15%) http://www.softwarearchitekt.at/workshops