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-resource-api/README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,7 +142,7 @@ booksResource = resource({
142
142
The loader is executed immediately when the Resource object is initialized. The Resource processes the response and offers the following signals to work with the data:
143
143
144
144
-`value`: loaded data, here `Book[]`
145
-
-`status`: state of the Resource, type `ResourceStatus`, e.g., *Resolved* or *Loading*, see next section
145
+
-`status`: state of the Resource, type `ResourceStatus`, e.g., `resolved` or `loading`, see next section
146
146
-`error`: error
147
147
148
148
We can display the loaded books in the template like this:
@@ -157,16 +157,16 @@ We can display the loaded books in the template like this:
157
157
158
158
## Status of the Resource
159
159
160
-
Using the `status` signal, we can evaluate the state of the Resource, e.g., to show a loading indicator. All `status` values are fields from the [`ResourceStatus`enum](https://angular.dev/api/core/ResourceStatus):
160
+
Using the `status` signal, we can evaluate the state of the Resource, e.g., to show a loading indicator. All `status` values are defined by the [`ResourceStatus`union type](https://angular.dev/api/core/ResourceStatus):
0 commit comments