Angular introduces the experimental httpResource API in version 19.2, built on the resource primitive and utilizing HttpClient as a loader. HttpResource enables reactive HTTP requests by exposing the results as signals, initiating requests eagerly and supporting various request types, including GET, POST, and advanced configurations. It integrates with schema validation libraries like Zod and Valibot to ensure type safety. The API is experimental and open for community feedback before stable release.
Table of contents
Seamless data fetching with httpResourceHttpResourceShape of an HttpResourceEmbracing the Ecosystem for Type SafetyExperimental APISort: