You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blog/2025-05-angular20/README.md
+49Lines changed: 49 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -269,6 +269,55 @@ Please note that a resource is only meant for *retrieving* data from an API and
269
269
Write operations such as create, update, or delete cannot be handled with a resource.
270
270
You must continue to use `HttpClient` directly for those.
271
271
272
+
## API Adjustments to `resource` and `rxResource`
273
+
274
+
The Resource API remains *experimental* in Angular 20.
275
+
This means the interface can still change without official prior notice.
276
+
Recently, there have been two interesting adjustments.
277
+
278
+
We have updated our comprehensive [blog post on the Resource API](https://angular.schule/blog/2025-05-resource-api) accordingly, so you will always find up-to-date examples there.
279
+
280
+
### resource: `params` instead of `request`
281
+
282
+
Parameters for a resource are now passed via the `params` property, no longer via `request`.
283
+
The property in the `ResourceLoaderParams` interface, from which we read the parameters, is now also called `params`.
0 commit comments