zehra-component-helloworld v0.0.8
Angular Elements demo
This project is a first try of using the experimental @angular/elements
.
It uses Ahead of Time Compilation provided by @ngtools/webpack
.
The bundle will run only in browsers supporting WebComponents.
Install
npm install
Build
Run npm run build
to build the project. The build artifacts will be stored in the dist/
directory.
Run
Run npm run serve
to serve the index.html page with the builded element.
http://nitayneeman.com/posts/building-a-custom-element-using-angular-elements/ https://medium.com/vincent-ogloblinsky/export-angular-components-as-custom-elements-with-angular-elements-a2a0bfcd7f8a https://www.softwarearchitekt.at/post/2018/01/14/microservice-clients-with-web-components-using-angular-elements-dreams-of-the-near-future.aspx https://softwarearchitekt.at/post/2017/12/28/a-software-architect-s-approach-towards-using-angular-and-spas-in-general-for-microservices-aka-microfrontends.aspx https://medium.com/vincent-ogloblinsky/export-angular-components-as-custom-elements-with-angular-elements-a2a0bfcd7f8a
npm run-script build npm publish
https://unpkg.com/zehra-component-helloworld@latest/dist/main.bundle.js