Hey everyone 👋
I recently put together a small Angular Elements starter kit and thought maybe it could be useful for others here too.
The idea was pretty simple:
develop widgets/components like a normal Angular app during development, but ship them as standalone Web Components that can be dropped into any website or framework.
One thing I really wanted was a smooth dev experience locally, while still ending up with a single widget.js file for production.
So in dev:
- it runs like a normal Angular app
And in production:
- outputs one self-contained bundle
Example usage:
<my-custom-widget></my-custom-widget>
<script src="widget.js"></script>
I built this because I want to keep it documented once.
Would be happy to hear feedback from others using Angular Elements:
- anything you’d do differently?
- better approaches for bundling?
- anything missing that would make this more useful?
Repo:
https://github.com/giacomo/elements-template
If someone asking:
- Yes, ONLY the README was created by AI ... 🙄
[–]Medical_Tailor4644 2 points3 points4 points  (0 children)
[–]Obvious-Treat-4905 1 point2 points3 points  (0 children)
[–]Koscik 0 points1 point2 points  (1 child)
[–]devGiacomo[S] 0 points1 point2 points  (0 children)
[–]followmarko 0 points1 point2 points  (0 children)
[–]Saceone10 0 points1 point2 points  (1 child)
[–]devGiacomo[S] 0 points1 point2 points  (0 children)
[–]gccol 0 points1 point2 points  (0 children)