angular/packages
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
..
animations build: update minimum supported Node.js versions 2026-02-25 07:57:18 -08:00
benchpress refactor(benchpress): remove zone-based testing utilities 2026-02-09 07:55:12 -08:00
common feat(core): add special return statuses for resource params 2026-03-02 08:47:14 -08:00
compiler build: update minimum supported Node.js versions 2026-02-25 07:57:18 -08:00
compiler-cli fix(compiler): throw on duplicate input/outputs 2026-02-26 13:47:37 -08:00
core feat(core): add special return statuses for resource params 2026-03-02 08:47:14 -08:00
docs/di build: format md files 2025-11-06 10:03:05 -08:00
elements build: update minimum supported Node.js versions 2026-02-25 07:57:18 -08:00
examples feat(core): add support for TypeScript 6 2026-02-17 08:40:38 -08:00
forms refactor(forms): address feedback 2026-03-02 08:46:43 -08:00
language-service fix(compiler): throw on duplicate input/outputs 2026-02-26 13:47:37 -08:00
localize build: update minimum supported Node.js versions 2026-02-25 07:57:18 -08:00
misc/angular-in-memory-web-api build: update cross-repo angular dependencies 2026-01-26 23:51:05 +00:00
platform-browser build: update minimum supported Node.js versions 2026-02-25 07:57:18 -08:00
platform-browser-dynamic build: update minimum supported Node.js versions 2026-02-25 07:57:18 -08:00
platform-server build: update minimum supported Node.js versions 2026-02-25 07:57:18 -08:00
private/testing test(http): remove zone-based testing utilities 2026-02-10 07:45:00 -08:00
router build: update minimum supported Node.js versions 2026-02-25 07:57:18 -08:00
service-worker build: update minimum supported Node.js versions 2026-02-25 07:57:18 -08:00
ssr/docs build: add node type for api extraction 2026-02-11 13:57:58 -08:00
upgrade refactor(upgrade): remove getAngularLib/setAngularLib 2026-02-25 07:58:24 -08:00
zone.js build: update all non-major dependencies 2026-02-25 08:31:32 -08:00
BUILD.bazel build(forms): expose signal forms compat package 2025-11-14 09:23:36 -08:00
circular-deps-test.conf.cjs build: use Node.js built-in TypeScript support for dev-infra scripts 2026-01-02 08:15:40 +01:00
empty.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
goog.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
license-banner.txt docs: update copyright year 2026-01-07 12:28:34 -05:00
package.json build: prepare for compiler-cli to be using ts_project (#61181) 2025-05-09 15:59:46 +00:00
README.md build: format md files 2025-11-06 10:03:05 -08:00
system.d.ts refactor: update packages/core:{core,src} to ts_project (#61275) 2025-05-14 12:01:51 +00:00
tsconfig-build.json Revert "refactor(compiler-cli): remove deep imports from compiler-cli (#64732)" 2025-11-06 13:09:01 -08:00
tsconfig-legacy-saucelabs.json feat(core): support TypeScript 5.5 (#56096) 2024-05-29 15:33:33 +02:00
tsconfig-test.json
tsconfig.json feat(compiler-cli): enable type checking of host bindings by default (#63654) 2025-09-09 14:34:29 -07:00
tsec-exemption.json
types.d.ts build: move private testing helpers outside platform-browser/testing (#61472) 2025-05-20 10:00:43 +00:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT