Essential background theory and context
The Angular CDK contains a collection of common interactions and behaviors that we can apply to Angular components. It is at the heart of the Angular Material library, but can be used with any CSS framework in an Angular application. The Angular CDK is available from the @angular/cdk
npm
package.
The Angular CLI supports creating Angular libraries out of the box. The functionality of an Angular library can be used only in Angular applications, and it is decoupled from specific business logic. If we want to use an Angular library in a non-Angular application, we need to convert it into Angular elements.
Custom elements are a web standard that allows the creation of HTML elements, independent of any JavaScript framework. It works by declaring a custom HTML tag and associating it with a JavaScript class. The browser can identify the HTML tag and execute the JavaScript code that is defined inside the class.
Angular elements are Angular components...