Angular 20: Resource API Changes — What You Need to Know

Опубликовано: 19 Май 2026
на канале: Igor Sedov
4,719
131

Angular 20 brings important changes to the experimental Resource API that affect resource(), rxResource(), and httpResource(). In this video, we break down what's new and what has changed in Angular 20 release. These updates are small but significant for anyone using resources.

Here's a quick summary of the changes:
● The request option is renamed to params (including the related property in the loader parameter)
● The loader option is renamed to stream
● ResourceStatus is no longer an enum
● httpResource no longer supports passing a string as the request URL — only a function or a request options object is allowed

If you see this error in Angular 20:
"ERROR TS2769: No overload matches this call. Object literal may only specify known properties, and 'request' does not exist in type PromiseResourceOptions."
then the issue is caused by the changes shown in this video.

🛠 Correction: Since Angular 20, the first argument of httpResource() must be a function — you can no longer pass a string or an object directly. This function can return: a string, a request options object or undefined. In the second half of the video, I say: "It can be a function or a request options object.". That's not accurate. Thanks for understanding! The rest of the video is correct and up to date.

ℹ️ Sources:
▪️https://github.com/angular/angular/pu...
▪️https://github.com/angular/angular/bl...

Thanks to the ‪@Angular‬ Team for the valuable work.

Follow me on:
▪️Twitter:   / theigorsedov  
▪️LinkedIn:   / igorsedov  
▪️Bluesky: https://bsky.app/profile/igorsedov.com
▪️Instagram:   / theigorsedov  

Website: https://igorsedov.com
Email: [email protected]

#angular20 #angular #angularframework