SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Micro FrontEnd
Approches using Angular
By
Amr Abd El Latief
Agenda
• What is Micro FrontEnd
• Micro FrontEnd Principles
• Micro FrontEnd benfits
• Approaches
• Notes and Conclusion
• Questions
• Refrences
What is MicroFrontEnd Architecture
• Micro-frontends is a microservice-like architecture that applies the
concept of microservices to the browser side.
• Instead of one single UI App, multiple Frontend Apps, and try to
integrate in one host App
The Story (illustration )
The Story (illustration ).. Continue
Example
MicroFrontEnd Principles
• Stand-alon run
• Independent Development
• Stand-alone deployment
MicroFrontEnd Benefits
• Many Development teams
• Independent deploy
• Simplify maintenance
Approaches
• BackEnd Rendering
• Iframe
• Angular Register bundle methods
• Frameworks ( Single-Spa, Mooa , luigi)
Approaches
•BackEnd Rendering
• Iframe
• Angular Register bundle methods
• Frameworks ( Single-Spa, Mooa , luigi)
BackEnd Rendering
• Some techniques use nodejs app as html generator for the Front End side
• This may mean that there is no Frontend separate App (layer)
• Ex.
const express = require('express')
const app = express()
const port = 4000
app.get('/', (req, res) => {
res.send('<div class="row"><h1>This is the app body header</h1></div>
<div class="row">This is the body Content</div>')
})
app.listen(port, () => {
console.log(`app listening at http://localhost:${port}`)
})
Approaches
• BackEnd Rendering
•Iframe
• Rounting(http methods)
• Angular Register bundle methods
• Frameworks ( Single-Spa, Mooa , luigi)
Iframe Methode
• Ex.
• <iframe src="http://localhost:3000" width="400" height="200"></iframe>
• Advantages:
1 – simple approach
2 – content changes dynamically with the change on the hosted server
3 – suitable for the legacy large components
• Disadvantages:
1 – Component Communication
2 – User experience
Approaches
• BackEnd Rendering
• Iframe
• Rounting(http methods)
•Angular Register (bundle methods)
• Frameworks ( Single-Spa, Mooa , luigi)
Methode 1: bundles from Servers
• Steps:
1 – compress the angular apps (microfront ends) by bundling them in
one .js File
• ng build --prod --output-hashing none --single-bundle true
2 - refrence the bundle .js files from the servers in the main App
• <script type="text/javascript" src="http://localhost:8081/main.js"></script>
• <script type="text/javascript" src="http://localhost:8082/main.js"></script>
3- we use apps with their angular registered names
• <div style="margin-bottom: 10px;" id="flight-booking-container"><app-flight-booking></app-flight-
booking></div>
• <div id="train-booking-container"><app-train-booking></app-train-booking></div>
Methode 2: bundles inside the host
• Steps:
1 – compress the angular apps (microfront ends) by bundling them in
one .js File
• ng build --prod --output-hashing none --single-bundle true
2 – includes: generating and adding the js files of each micro front end
to the host app manually
3 -reference those files in angular.json
ex : ,
"scripts": ["micro-component/main.js", "micro-component/main-
train.js"]
Methode 2: bundles inside the host - continue
• Steps:
4 – add to the module.ts file of your Amgular App:
import { NgModule,CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
schemas: [
CUSTOM_ELEMENTS_SCHEMA
],
Approaches
• BackEnd Rendering
• Iframe
• Rounting(http methods)
• Angular Register (bundle methods)
•Frameworks ( Single-Spa, Mooa ,
Luigi)
FrameWorks
• single-spa is a framework for bringing together multiple JavaScript
microfrontends in a frontend application.
• Use multiple frameworks on the same page (angular , react , angularjs, vue)
• Deploy your microfrontends independently
• Write code using a new framework, without rewriting your existing app
• Lazy load code for improved initial load time
• Other Frameworks (Mooa , Luigi )
Notes & Conclusion
• 1 – not very simple to apply Different technologies
• 2 – interconnection between microfront end isnt professionally
handeled yet
References
• https://dzone.com/articles/micro-frontends-benefits
• https://dzone.com/articles/build-micro-front-ends-using-angular-
elements-the
• https://www.slideshare.net/MiguelAngelTeheranGa/micro-frontend
• https://single-spa.js.org/docs/getting-started-overview
Micro frontend

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Micro frontends
Micro frontendsMicro frontends
Micro frontends
 
State of Micro Frontend
State of Micro FrontendState of Micro Frontend
State of Micro Frontend
 
Introduction To Micro Frontends
Introduction To Micro Frontends Introduction To Micro Frontends
Introduction To Micro Frontends
 
"Micro-frontends, web development", Oleksandr Khivrych
"Micro-frontends, web development", Oleksandr Khivrych"Micro-frontends, web development", Oleksandr Khivrych
"Micro-frontends, web development", Oleksandr Khivrych
 
How to build Micro Frontends with @angular/elements
How to build Micro Frontends with @angular/elementsHow to build Micro Frontends with @angular/elements
How to build Micro Frontends with @angular/elements
 
Microfrontends Monoreops & Trunkbased based
Microfrontends Monoreops & Trunkbased basedMicrofrontends Monoreops & Trunkbased based
Microfrontends Monoreops & Trunkbased based
 
Micro Front-End & Microservices - Plansoft
Micro Front-End & Microservices - PlansoftMicro Front-End & Microservices - Plansoft
Micro Front-End & Microservices - Plansoft
 
Micro Frontends Architecture
Micro Frontends ArchitectureMicro Frontends Architecture
Micro Frontends Architecture
 
FEVR - Micro Frontend
FEVR - Micro FrontendFEVR - Micro Frontend
FEVR - Micro Frontend
 
Shift Remote FRONTEND: Micro Frontend Architecture: A Look Into the Future - ...
Shift Remote FRONTEND: Micro Frontend Architecture: A Look Into the Future - ...Shift Remote FRONTEND: Micro Frontend Architecture: A Look Into the Future - ...
Shift Remote FRONTEND: Micro Frontend Architecture: A Look Into the Future - ...
 
Micro Front Ends : Divided We Rule by Parth Ghiya - AhmedabadJS
Micro Front Ends : Divided We Rule by Parth Ghiya - AhmedabadJSMicro Front Ends : Divided We Rule by Parth Ghiya - AhmedabadJS
Micro Front Ends : Divided We Rule by Parth Ghiya - AhmedabadJS
 
Globant development week / Micro frontend
Globant development week / Micro frontendGlobant development week / Micro frontend
Globant development week / Micro frontend
 
"Micro-frontends: Scalable and Modular Frontend in Parimatch Tech", Kyrylo Ai...
"Micro-frontends: Scalable and Modular Frontend in Parimatch Tech", Kyrylo Ai..."Micro-frontends: Scalable and Modular Frontend in Parimatch Tech", Kyrylo Ai...
"Micro-frontends: Scalable and Modular Frontend in Parimatch Tech", Kyrylo Ai...
 
Ivan Jovanovic - Micro Frontends - Codemotion Rome_2019
Ivan Jovanovic - Micro Frontends - Codemotion Rome_2019Ivan Jovanovic - Micro Frontends - Codemotion Rome_2019
Ivan Jovanovic - Micro Frontends - Codemotion Rome_2019
 
Introduction To Microservices
Introduction To MicroservicesIntroduction To Microservices
Introduction To Microservices
 
Micro frontends with react and redux dev day
Micro frontends with react and redux   dev dayMicro frontends with react and redux   dev day
Micro frontends with react and redux dev day
 
Micro frontend: The microservices puzzle extended to frontend
Micro frontend: The microservices puzzle  extended to frontendMicro frontend: The microservices puzzle  extended to frontend
Micro frontend: The microservices puzzle extended to frontend
 
Microservice Architecture | Microservices Tutorial for Beginners | Microservi...
Microservice Architecture | Microservices Tutorial for Beginners | Microservi...Microservice Architecture | Microservices Tutorial for Beginners | Microservi...
Microservice Architecture | Microservices Tutorial for Beginners | Microservi...
 
Introduction to microservices
Introduction to microservicesIntroduction to microservices
Introduction to microservices
 
Microservices architecture
Microservices architectureMicroservices architecture
Microservices architecture
 

Ähnlich wie Micro frontend

Tech io spa_angularjs_20130814_v0.9.5
Tech io spa_angularjs_20130814_v0.9.5Tech io spa_angularjs_20130814_v0.9.5
Tech io spa_angularjs_20130814_v0.9.5
Ganesh Kondal
 

Ähnlich wie Micro frontend (20)

From MEAN to the MERN Stack
From MEAN to the MERN StackFrom MEAN to the MERN Stack
From MEAN to the MERN Stack
 
MicroForntends.pdf
MicroForntends.pdfMicroForntends.pdf
MicroForntends.pdf
 
Griffon for the Enterprise
Griffon for the EnterpriseGriffon for the Enterprise
Griffon for the Enterprise
 
Valentine with Angular js - Introduction
Valentine with Angular js - IntroductionValentine with Angular js - Introduction
Valentine with Angular js - Introduction
 
MEAN Stack Warm-up
MEAN Stack Warm-upMEAN Stack Warm-up
MEAN Stack Warm-up
 
Angular meetup 2 2019-08-29
Angular meetup 2   2019-08-29Angular meetup 2   2019-08-29
Angular meetup 2 2019-08-29
 
Webinar on How to use MyAppConverter
Webinar on How to use  MyAppConverterWebinar on How to use  MyAppConverter
Webinar on How to use MyAppConverter
 
Performance and Scalability Art of Isomorphic React Applications
Performance and Scalability Art of Isomorphic React ApplicationsPerformance and Scalability Art of Isomorphic React Applications
Performance and Scalability Art of Isomorphic React Applications
 
Building Effective and Rapid Applications with IBM MobileFirst Platform
Building Effective and Rapid Applications with IBM MobileFirst PlatformBuilding Effective and Rapid Applications with IBM MobileFirst Platform
Building Effective and Rapid Applications with IBM MobileFirst Platform
 
Angular Meetup 1 - Angular Basics and Workshop
Angular Meetup 1 - Angular Basics and WorkshopAngular Meetup 1 - Angular Basics and Workshop
Angular Meetup 1 - Angular Basics and Workshop
 
Tech io spa_angularjs_20130814_v0.9.5
Tech io spa_angularjs_20130814_v0.9.5Tech io spa_angularjs_20130814_v0.9.5
Tech io spa_angularjs_20130814_v0.9.5
 
"Micro-frontends from A to Z. How and Why we use Micro-frontends in Namecheap...
"Micro-frontends from A to Z. How and Why we use Micro-frontends in Namecheap..."Micro-frontends from A to Z. How and Why we use Micro-frontends in Namecheap...
"Micro-frontends from A to Z. How and Why we use Micro-frontends in Namecheap...
 
Reactive application using meteor
Reactive application using meteorReactive application using meteor
Reactive application using meteor
 
Oracle JavaScript Extension Toolkit Web Components Bring Agility to App Devel...
Oracle JavaScript Extension Toolkit Web Components Bring Agility to App Devel...Oracle JavaScript Extension Toolkit Web Components Bring Agility to App Devel...
Oracle JavaScript Extension Toolkit Web Components Bring Agility to App Devel...
 
Integrate Applications into IBM Connections Cloud and On Premises (AD 1632)
Integrate Applications into IBM Connections Cloud and On Premises (AD 1632)Integrate Applications into IBM Connections Cloud and On Premises (AD 1632)
Integrate Applications into IBM Connections Cloud and On Premises (AD 1632)
 
The future of web development write once, run everywhere with angular js an...
The future of web development   write once, run everywhere with angular js an...The future of web development   write once, run everywhere with angular js an...
The future of web development write once, run everywhere with angular js an...
 
The future of web development write once, run everywhere with angular.js and ...
The future of web development write once, run everywhere with angular.js and ...The future of web development write once, run everywhere with angular.js and ...
The future of web development write once, run everywhere with angular.js and ...
 
Pragmatic Monolith-First, easy to decompose, clean architecture
Pragmatic Monolith-First, easy to decompose, clean architecturePragmatic Monolith-First, easy to decompose, clean architecture
Pragmatic Monolith-First, easy to decompose, clean architecture
 
Angular.ppt
Angular.pptAngular.ppt
Angular.ppt
 
Escaping the yellow bubble - rewriting Domino using MongoDb and Angular
Escaping the yellow bubble - rewriting Domino using MongoDb and AngularEscaping the yellow bubble - rewriting Domino using MongoDb and Angular
Escaping the yellow bubble - rewriting Domino using MongoDb and Angular
 

Mehr von Amr Abd El Latief

Mehr von Amr Abd El Latief (12)

master-journey.pptx
master-journey.pptxmaster-journey.pptx
master-journey.pptx
 
I feel presentation [autosaved]
I feel presentation [autosaved]I feel presentation [autosaved]
I feel presentation [autosaved]
 
Design p atterns
Design p atternsDesign p atterns
Design p atterns
 
AngularJs advanced Topics
AngularJs advanced TopicsAngularJs advanced Topics
AngularJs advanced Topics
 
Angular js slides
Angular js slidesAngular js slides
Angular js slides
 
Data mining concepts and work
Data mining concepts and workData mining concepts and work
Data mining concepts and work
 
Test vector compression
Test vector compressionTest vector compression
Test vector compression
 
Designing energy efficient lte
Designing energy efficient lteDesigning energy efficient lte
Designing energy efficient lte
 
Stock market analysis using ga and neural network
Stock market analysis using ga and neural networkStock market analysis using ga and neural network
Stock market analysis using ga and neural network
 
Chromium os architecture report
Chromium os  architecture reportChromium os  architecture report
Chromium os architecture report
 
Marketing plane of cadbry bupply kids
Marketing plane of cadbry bupply kidsMarketing plane of cadbry bupply kids
Marketing plane of cadbry bupply kids
 
Test vector compression in Digital Testing
Test vector compression in Digital Testing Test vector compression in Digital Testing
Test vector compression in Digital Testing
 

Kürzlich hochgeladen

introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Kürzlich hochgeladen (20)

Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 

Micro frontend

  • 1. Micro FrontEnd Approches using Angular By Amr Abd El Latief
  • 2. Agenda • What is Micro FrontEnd • Micro FrontEnd Principles • Micro FrontEnd benfits • Approaches • Notes and Conclusion • Questions • Refrences
  • 3. What is MicroFrontEnd Architecture • Micro-frontends is a microservice-like architecture that applies the concept of microservices to the browser side. • Instead of one single UI App, multiple Frontend Apps, and try to integrate in one host App
  • 5. The Story (illustration ).. Continue
  • 7. MicroFrontEnd Principles • Stand-alon run • Independent Development • Stand-alone deployment
  • 8. MicroFrontEnd Benefits • Many Development teams • Independent deploy • Simplify maintenance
  • 9. Approaches • BackEnd Rendering • Iframe • Angular Register bundle methods • Frameworks ( Single-Spa, Mooa , luigi)
  • 10. Approaches •BackEnd Rendering • Iframe • Angular Register bundle methods • Frameworks ( Single-Spa, Mooa , luigi)
  • 11. BackEnd Rendering • Some techniques use nodejs app as html generator for the Front End side • This may mean that there is no Frontend separate App (layer) • Ex. const express = require('express') const app = express() const port = 4000 app.get('/', (req, res) => { res.send('<div class="row"><h1>This is the app body header</h1></div> <div class="row">This is the body Content</div>') }) app.listen(port, () => { console.log(`app listening at http://localhost:${port}`) })
  • 12. Approaches • BackEnd Rendering •Iframe • Rounting(http methods) • Angular Register bundle methods • Frameworks ( Single-Spa, Mooa , luigi)
  • 13. Iframe Methode • Ex. • <iframe src="http://localhost:3000" width="400" height="200"></iframe> • Advantages: 1 – simple approach 2 – content changes dynamically with the change on the hosted server 3 – suitable for the legacy large components • Disadvantages: 1 – Component Communication 2 – User experience
  • 14. Approaches • BackEnd Rendering • Iframe • Rounting(http methods) •Angular Register (bundle methods) • Frameworks ( Single-Spa, Mooa , luigi)
  • 15. Methode 1: bundles from Servers • Steps: 1 – compress the angular apps (microfront ends) by bundling them in one .js File • ng build --prod --output-hashing none --single-bundle true 2 - refrence the bundle .js files from the servers in the main App • <script type="text/javascript" src="http://localhost:8081/main.js"></script> • <script type="text/javascript" src="http://localhost:8082/main.js"></script> 3- we use apps with their angular registered names • <div style="margin-bottom: 10px;" id="flight-booking-container"><app-flight-booking></app-flight- booking></div> • <div id="train-booking-container"><app-train-booking></app-train-booking></div>
  • 16. Methode 2: bundles inside the host • Steps: 1 – compress the angular apps (microfront ends) by bundling them in one .js File • ng build --prod --output-hashing none --single-bundle true 2 – includes: generating and adding the js files of each micro front end to the host app manually 3 -reference those files in angular.json ex : , "scripts": ["micro-component/main.js", "micro-component/main- train.js"]
  • 17. Methode 2: bundles inside the host - continue • Steps: 4 – add to the module.ts file of your Amgular App: import { NgModule,CUSTOM_ELEMENTS_SCHEMA} from '@angular/core'; schemas: [ CUSTOM_ELEMENTS_SCHEMA ],
  • 18. Approaches • BackEnd Rendering • Iframe • Rounting(http methods) • Angular Register (bundle methods) •Frameworks ( Single-Spa, Mooa , Luigi)
  • 19. FrameWorks • single-spa is a framework for bringing together multiple JavaScript microfrontends in a frontend application. • Use multiple frameworks on the same page (angular , react , angularjs, vue) • Deploy your microfrontends independently • Write code using a new framework, without rewriting your existing app • Lazy load code for improved initial load time • Other Frameworks (Mooa , Luigi )
  • 20. Notes & Conclusion • 1 – not very simple to apply Different technologies • 2 – interconnection between microfront end isnt professionally handeled yet
  • 21.
  • 22. References • https://dzone.com/articles/micro-frontends-benefits • https://dzone.com/articles/build-micro-front-ends-using-angular- elements-the • https://www.slideshare.net/MiguelAngelTeheranGa/micro-frontend • https://single-spa.js.org/docs/getting-started-overview