Sample WebComponent/CustomElement for Angular components using Angular Elements
- Clone the repository
- Run
npm installto get the dependencies - Source code is part of
srcfolder. - The project uses OMDN API to fetch posters. Please get an API key from OMDB.
- Update the API key in
src/app/poster-widget/poster-widget.component.ts
- Run
npm run serveto generate the local url for preview
- Run
npm run buildto build the angular elements outpur. - Post build, output files will be generated in the
dist/WebComponentAngular9folder. - Use the generated files in the below your HTML to consume.
- polyfills-*.js
- vendor-*.js
- runtime-*.js
- styles-*.js
- main-*.js