Benjamin Glusa - 6 months ago
On tour with heroes == Moving from Angular to WebComponents
Our frontends have become increasingly more complicated. More and more business logic is moved from back- to frontend.
Frameworks like Angular are great for this paradigm. They offer great support for routing, dependency injection, testing, etc.
But - as with all things in life - these benefits don't come for free. By relying on these frameworks we actually depend on it. Our code cannot run without them, and framework upgrades may sometimes break it.
Also these frameworks are often heavy in size, slowing down our applications.
WebComponents on the other hand offer an framework agnostic and lightweight alternative. Modern compilers like StencilJs or SvelteJs help us to keep most the benefits mentioned above. In this talk, we will migrate an typical angular application into WebComponents and discuss the advantages and disadvantages.