Why Do We Have Components Now?
Explore the reasons for introducing components in Angular 2+.
What is a web component?
Why did the Angular team move to components in Angular 2+? Well, this is due in part to the emergence of Web Components.
Web Components are a series of web APIs, which allow you to create your own HTML tags.
Creating your own tags isn’t actually new. As AngularJS developers, we can create our own tag using directives, and later in AngularJS 1.5+ using components.
But now, web components allow us to create HTML tags that the browser understands without ...