Including the CUSTOM_ELEMENTS_SCHEMA in the module allows the use of the web components in the HTML markup without the compiler producing errors
- Defines a schema that allows an NgModule to contain the following:
-
- Non-Angular elements named with dash case (
-
).
- Non-Angular elements named with dash case (
-
- Element properties named with dash case (
-
).
- Element properties named with dash case (
- Dash case is the naming convention for custom elements.
https://angular.io/api/core/CUSTOM_ELEMENTS_SCHEMA
The NO_ERRORS_SCHEMA tells the Angular compiler to ignore unrecognized elements and attributes.
- Defines a schema that allows any property on any element.
https://angular.io/guide/testing#no_errors_schema https://angular.io/api/core/NO_ERRORS_SCHEMA