This new Angular primitive might actually be a viable alternative to RxJS @JoshuaMorony
This new Angular primitive might actually be a viable alternative to RxJS  @JoshuaMorony
Uploaded October 2024 | Updated September 2026, 2 weeks ago
My Angular course: angularstart.com

Angular is introducing a new signals primitive in v19: resource. It will allow loading asynchronous data, e.g. from an HTTP request, in a declarative way with just signals. Not only that, it will also provide convenient access to signals representing the state of the request and any errors.

The PR: github.com/angular/angular/pull/58255
Enea's article: push-based.io/article/everything-you-need-to-know-about-the-resource-api
Previous declarative change video: youtube.com/watch?v=nxM_aCQlxuQ

Get weekly content and tips exclusive to my newsletter: https://mobirony.ck.page/4a331b9076

Want to build mobile apps with Angular?: ionicstart.com

0:00 The resource primitive
0:33 A scenario with RxJS
1:20 Why signals didn't work
1:36 Using the resource API
2:10 Comparison to RxJS
2:40 RxJS interop

#angular #rxjs #signals

- More tutorials: modernangular.com
- Follow me on Twitter: twitter.com/joshuamorony
This new Angular primitive might actually be a viable alternative to RxJSA visual guide to switchMap and higher order observablesWhy does building an Angular app with INJECTION TOKENS feel so good?!The most compelling reason to learn Angular in 2023The easy way to GIT like the prosThe mindset you need for a DECLARATIVE code refactorShould we really NEVER subscribe in Angular apps?How I published the WORST Angular component libraryArchitecting a (boring) real life project with NxServer rendered Angular websites in literal minutes...How to casually change the entire way Angular components workI built an entire app with NO FRAMEWORKS for Web, iOS, and Android
Joshua Morony |

This new Angular primitive might actually be a viable alternative to RxJS

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER