Introducing web components
Before we get into web components, you need to know why we are learning about them. Well, we are learning about web components because Angular 2 components utilize shadow DOM and templates, which are a part of web components.
In a nutshell, web components are a collection of four different browser specifications that enable the creation of reusable components in web pages. These four specifications are HTML imports, shadow DOM, templates, and custom elements. They can be used together or separately.
Web components provide native implementation of component-oriented architecture. A component created using web components is called a web component as well.
Before we learn about web components, let's consider a project for ...
Get JavaScript: Moving to ES2015 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.