Benjamin Glusa
On tour with heroes == Moving from Angular to WebComponents
#1about 4 minutes
The challenges of large frontend frameworks like Angular
Large frameworks like Angular can lead to dependency lock-in, large bundle sizes, and complexity, making migrations difficult.
#2about 2 minutes
Using Web Components and Svelte as an alternative
Web Components offer a framework-agnostic, simple, and lightweight alternative, made easier to develop with compilers like Svelte.
#3about 4 minutes
Scaffolding a new Svelte project from scratch
A new Svelte project is scaffolded using npx degit, and its package.json reveals only dev dependencies because Svelte is a compiler.
#4about 3 minutes
Creating a Svelte store to manage application state
A central store is created using a `writable` to hold hero data, which is fetched from a backend and populated asynchronously.
#5about 7 minutes
Using derived stores to automatically transform data
A derived store is created from the main hero store to automatically compute and provide a sorted list of the top five heroes.
#6about 3 minutes
Building a reusable list component with props
A generic list component is created to display heroes passed down via props, demonstrating component reusability and data flow.
#7about 3 minutes
Managing UI state for selected items in a list
A `writable` store is used to track the currently selected hero, which is updated via an `on:click` event handler.
#8about 4 minutes
Creating a form component for editing data
An editing component is built with input fields that use two-way data binding to the properties of the selected hero from the store.
#9about 4 minutes
Implementing update logic within the central store
An `update` function is added to the hero store to handle saving changes by replacing the old hero object with the updated one.
#10about 4 minutes
Simulating navigation using custom events and state
A simple navigation system is implemented by dispatching a custom 'back' event from a child component to a parent, which then updates state to change the view.
#11about 5 minutes
Building a search feature with multiple derived stores
A powerful search feature is created by deriving a new store from both the main hero list and a `searchTerm` store, automatically filtering results as the user types.
#12about 1 minute
Final thoughts and review of developing with Svelte
Svelte is praised for being a clean, small, and easy-to-learn library that provides powerful tools without the bloat of a full framework.
Related jobs
Jobs that call for the skills explored in this talk.
Hubert Burda Media
München, Germany
€80-95K
Intermediate
Senior
JavaScript
Node.js
+1
MARKT-PILOT GmbH
Stuttgart, Germany
Remote
€75-90K
Senior
Java
TypeScript
+1
Douglas GmbH
Düsseldorf, Germany
Intermediate
Senior
TypeScript
React
Matching moments
02:33 MIN
Why you might not need JavaScript for everything
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
09:00 MIN
Navigating the growing complexity of modern CSS
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
11:10 MIN
The only frontend stack that truly matters
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
11:32 MIN
The industry's focus on frameworks over web fundamentals
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
08:07 MIN
Exploring modern JavaScript performance and new CSS features
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
03:31 MIN
The value of progressive enhancement and semantic HTML
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
05:28 MIN
The origin story of the Polypane developer browser
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
07:46 MIN
The challenge of keeping up with modern CSS
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
Featured Partners
Related Videos
Why I Recommend Svelte to Every New Web Developer
Markus Hatvan
Frameworkless: How to use Web-Components in production?
Tobias Münch
Snappy UI needs no Single-Page Application
Clemens Helm
Extending HTML with Web Components
Rowdy Rabouw
How to Stop Choosing JavaScript Frameworks and Start Living
Sasha Shynkevich
Front-End Micro Apps
Serg Hospodarets
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
Chris Heilmann, Daniel Cranney & Jan Deppisch
Angular tips/tricks you can use from tomorrow on
Benedikt Starzengruber
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.


Visonum GmbH
Remote
Junior
Intermediate
React
Redux
TypeScript

Confideck GmbH
Vienna, Austria
Remote
Intermediate
Senior
Node.js
MongoDB
TypeScript

CareerValue
Bilthoven, Netherlands
€3-5K
Junior
Scrum
Svelte
JavaScript
TypeScript

Lightspeed
Ghent, Belgium
Remote
Senior
CSS
HTML
REST
React
+8

Paradigma Digital
Municipality of Santiago de Compostela, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
Municipality of Valencia, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
Barcelona, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
Santa Cruz de Tenerife, Spain
API
React
Svelte
Vue.js
WebPack
+3