This is an Angular workspace that contains:
ng serve
— start an Angular demo app with Angular componentsnpm run build:elements
— build single JS file Web Components from Angular componentsangular.json contains configuration of application for Angular Elements compilation
package.json contains:
document-register-element@v1.8.1
@angular/elements
added using ng add @angular/elements --project=elements
command@angular-builders/custom-webpack
added using ng add @angular-builders/custom-webpack --project=elements
commandbuild:elements
script'elements' project contains several scripts for easy building proccess
ElementModule — abstract class implementing the whole Angular Element adding process
native-demo page — an example with three bundled Web Components exchanging data