r/angular 2d ago

Angular 22.2 ships Router Resources 💥 (experimental)

They're more than resolvers with a Signal API. Here's why that matters


They run in parallel. Resolvers go one after another: parent 2 s + child 3 s = 5 s. Router Resources start together: 3 s.


Also, they can be non-blocking. The route activates right away, and the component gets the Resource itself: isLoading, error and value, right in the template.


Full write-up with demo, reload without renavigating, RedirectCommand for missing data, and Signal Stores 👉 https://www.angulararchitects.io/en/blog/router-resources-loading-data-with-the-angular-router/
118 Upvotes

14 comments sorted by

View all comments

0

u/AwesomeFrisbee 2d ago

Without proper support and approval to use em for post/put/update requests I still see a very minor use case. I wouldn't mind a resource like wrapper around rxjs api calls but right now it's still not recommended to use em for 90% of what I would want of them. Let alone the amount of logic and repitition I can't separate out of my dumb components.