angular/packages/common
Miles Malerba 2206efa55f feat(core): add special return statuses for resource params
Allows throwing from the resource's params function to transition the
resource to a status other than resolved.

In particular, the following values can be thrown from params:
- `ResourceParamsStatus.IDLE` causes the resource to become `idle`
  (equivalent to returning `undefined`)
- `ResourceParamsStatus.LOADING` causes the resource to become `loading`
- Any `Error` object causes the resource to become `error` and report
  the error that was thrown via `.error()`

To simplify chaining together resources, this PR also introduces a
context object passed into to the `params` functon. This context
contains a `chain` function that can be used to get the value of a
resource that the params want to depend on, while automatically
propagating the idle, loading, and erorr states of the resource forward.
2026-03-02 08:47:14 -08:00
..
http feat(core): add special return statuses for resource params 2026-03-02 08:47:14 -08:00
locales ci: reformat files 2025-12-16 14:44:19 -08:00
src refactor(common): log a warning when a KeyValuePipe receives a signal 2026-02-25 08:11:29 -08:00
test feat(common): add an 'outlet' injector option for ngTemplateOutlet 2026-02-10 09:42:50 -08:00
testing refactor(core): Use the provided Document value rather than global in FakeNavigation 2026-01-08 13:28:18 -08:00
upgrade build: update Jasmine to 6.0.0 2026-02-09 12:15:57 -08:00
BUILD.bazel build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
index.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
package.json build: update minimum supported Node.js versions 2026-02-25 07:57:18 -08:00
PACKAGE.md build: format md files 2025-11-06 10:03:05 -08:00
public_api.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00