SlideShare a Scribd company logo
Web component: Using
Angular Element
Himanshu Tamrakar
About me
Himanshu Tamrakar | Developer at Decimal
Email: himanshu.tamrakar@outlook.com
Contact No. : (+91)-8989468903
Github: https://github.com/Himanshu-Tamrakar
Contents
➔ Recap : Last session
➔ Introduction
➔ Webcomponent and Angular Element
➔ Dynamically adding web component
➔ Loading external Web component
➔ Zone-less change detection
➔ Content Projection and slot api
Recap: Angular Based
Frontend Architecture
Angular Based Architecture Recap
(npm)-package
Advantages
Disadvantages
How to create
Mono repo
Advantages
Disadvantages
How to achieve using CLI and NX
Micro Frontend
Advantages
Disadvantages
How to achieve using Hyperlink
and Shell based app
Decision Tree
How to choose architecture for
such a use case
Web componenet using angular element
Summary
We have adopted npm package and Micro frontend for vahana 2.0. More specifically we are using
Hyperlink, npm package, Web components andiframe for our vahana 2.0 Architecture.
The next session will be devoted to explain Vahana 2.0 Frontend architecture,, so stay tuned.
Introduction
Long Term maintainability
Web component and Angular
Elements
Web componenet using angular element
Web component:
Framework Independent
Components
Shadow dom
Standards behinds Web components
Templates
Custom Element
Default present in Angular
@Coponent(encapsulation..)
Angular Element
Angular Element
Using Custom Element
<pie-chart></pie-chart>
Demo
Polyfils
All this can be polyfill
down to IE11 and (more
or less)
Polyfills
1. @webcomponents/webcomponentsjs
2. Others..
Polyfills
1. Loader polyfills
2. Es5-adapter polyfills
Differential Loading
CLI >= 8+: Angular generates two builds one for
modern browser and another for older browser
that support es5. We can be safe on installing
polyfills. Instead we will create two builds.
ES 2015+
ES5
browserlist
IE9-11
tsconfig
target: ES2015
Differential Loading
<script src=”bundle-es5.js” nomodule></script>
<script src=”bundle-es2015.js” type=”module”></sript>
Demo
Dynamically loading the web
component
Demo
Loading External Web
Component
Custom
Elements
Bundle Application
uses bundle
Bundling is not supported officially
Demo
Zone Less Change Detection
Why zone.js?
● Used by angular change detection
● Patches each browser event
● Notify angular after each event handler
Why not zone.js?
● Because it is heavy in size wise
● Awkward to force consumers of our web
component to load zone.js
● Issues with native (async/await) (>=ES2017)
Because zone.js cannot patch native
async/await.
How to exclude zone.js?
platformBrowserDynamic()
.bootstrapModule(AppModule, {ngZone: ‘noop’})
.catch(err => console.error(err));
And remove import from polyfills
Consequences
● Manual change detection
● Change detection via Observable
Demo
Content Projection and Slot api
Demo
Quesion?
References
Enterprise Angular
Confluence: Angular Library
Confluence: Architecture Web Based Enterprise application
Confluence: Web components
Web componenet using angular element

More Related Content

PPTX
Kraken.js Lab Primer
PPTX
Server side rendering review
PDF
Open source and cross platform .net
PDF
Server Side React for WordPress by Muhammad Muhsin @ The JavaScript for WordP...
PDF
When Less is More - Save Brain Cycles with GKE Autopilot and Cloud Run
PDF
Particle Image Velocimetry on AWS Batch
PPTX
15-ways-to-optimize-spring-boot-for-the-cloud
PDF
React Server Side Rendering with Next.js
Kraken.js Lab Primer
Server side rendering review
Open source and cross platform .net
Server Side React for WordPress by Muhammad Muhsin @ The JavaScript for WordP...
When Less is More - Save Brain Cycles with GKE Autopilot and Cloud Run
Particle Image Velocimetry on AWS Batch
15-ways-to-optimize-spring-boot-for-the-cloud
React Server Side Rendering with Next.js

What's hot (20)

PPTX
Introduction to .NET Core & ASP.NET Core MVC
PDF
Silverstripe CMS 4.9.0 release and beyound
PDF
Serverless
PDF
Introduction to ASP.NET Core
PDF
Easy way to begin Computational Fluid Dynamics on Cloud
PDF
Serverless preview environments to the rescue
PPTX
Building real time app by using asp.Net Core
PPTX
15 ways-to-optimize-spring-boot-for-the-cloud
PPTX
DotNet Conf Madrid 2019 - ASP.NET Core 3
PDF
WebAssembly Fundamentals
PPTX
Why I am hooked on the future of React
PPTX
Gdg makurdi
PPTX
RedMart Migrating from EC2 to VPC with Chef
PPTX
Lightning branches at RedMart (Js conf Asia 2014 Talk)
PPTX
PDF
Cayla and Vert.x in Ceylon, by Gavin King
PDF
Moving ASP.NET MVC to ASP.NET Core
PPTX
Cloud Community Engineering - Holiday readiness
PPTX
Gdg ionic 2
PPTX
Microsoft &lt;3 Linux with ASP.NET Core
Introduction to .NET Core & ASP.NET Core MVC
Silverstripe CMS 4.9.0 release and beyound
Serverless
Introduction to ASP.NET Core
Easy way to begin Computational Fluid Dynamics on Cloud
Serverless preview environments to the rescue
Building real time app by using asp.Net Core
15 ways-to-optimize-spring-boot-for-the-cloud
DotNet Conf Madrid 2019 - ASP.NET Core 3
WebAssembly Fundamentals
Why I am hooked on the future of React
Gdg makurdi
RedMart Migrating from EC2 to VPC with Chef
Lightning branches at RedMart (Js conf Asia 2014 Talk)
Cayla and Vert.x in Ceylon, by Gavin King
Moving ASP.NET MVC to ASP.NET Core
Cloud Community Engineering - Holiday readiness
Gdg ionic 2
Microsoft &lt;3 Linux with ASP.NET Core
Ad

Similar to Web componenet using angular element (20)

PDF
Front End Development for Back End Developers - vJUG24 2017
PPTX
Advanced angular
PDF
Treinamento frontend
PDF
Angular js
PDF
Angular js
PDF
Commit University - Exploring Angular 2
PDF
Web components - An Introduction
PPTX
Introduction to angular | Concepts and Environment setup
PDF
Thinking in Components
PDF
Angular vs. polymer a face off for the throne of frontend development
PDF
Angular Meetup 1 - Angular Basics and Workshop
PDF
«Разрушаем Вавилонскую Башню WWW с помощью веб-компонент»​
PDF
Front-end tower of Babylon
PDF
React vs Angular, Head-to-head Comparison
PPTX
Web development at Live: Frontend Software Intro + Trade-offs, React, Angular
PPTX
Angular 2 On Production (IT Talk in Dnipro)
PDF
Angular 2 - The Next Framework
PPTX
Александр Трищенко "How to improve Angular 2 performance?"
PDF
Quick introduction to Angular 4 for AngularJS 1.5 developers
PDF
better-apps-angular-2-day1.pdf and home
Front End Development for Back End Developers - vJUG24 2017
Advanced angular
Treinamento frontend
Angular js
Angular js
Commit University - Exploring Angular 2
Web components - An Introduction
Introduction to angular | Concepts and Environment setup
Thinking in Components
Angular vs. polymer a face off for the throne of frontend development
Angular Meetup 1 - Angular Basics and Workshop
«Разрушаем Вавилонскую Башню WWW с помощью веб-компонент»​
Front-end tower of Babylon
React vs Angular, Head-to-head Comparison
Web development at Live: Frontend Software Intro + Trade-offs, React, Angular
Angular 2 On Production (IT Talk in Dnipro)
Angular 2 - The Next Framework
Александр Трищенко "How to improve Angular 2 performance?"
Quick introduction to Angular 4 for AngularJS 1.5 developers
better-apps-angular-2-day1.pdf and home
Ad

Recently uploaded (20)

PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
System and Network Administraation Chapter 3
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
history of c programming in notes for students .pptx
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
Transform Your Business with a Software ERP System
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Nekopoi APK 2025 free lastest update
PDF
Digital Strategies for Manufacturing Companies
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
AI in Product Development-omnex systems
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
medical staffing services at VALiNTRY
Reimagine Home Health with the Power of Agentic AI​
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Adobe Illustrator 28.6 Crack My Vision of Vector Design
System and Network Administraation Chapter 3
Wondershare Filmora 15 Crack With Activation Key [2025
history of c programming in notes for students .pptx
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Which alternative to Crystal Reports is best for small or large businesses.pdf
2025 Textile ERP Trends: SAP, Odoo & Oracle
Transform Your Business with a Software ERP System
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Nekopoi APK 2025 free lastest update
Digital Strategies for Manufacturing Companies
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
AI in Product Development-omnex systems
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
medical staffing services at VALiNTRY

Web componenet using angular element