Angular Petstore Services
Injectable Angular services with httpResource, Signals, and dependency injection
httpResource Examples
These services demonstrate Angular 19.2+ httpResource API with Signal-based reactive patterns. Each service method returns an HttpResourceRef with automatic request management.
What is httpResource?
httpResource is Angular's new Signal-based HTTP API introduced in version 19.2. It provides:
- Automatic request management - No need to manually subscribe/unsubscribe
- Signal integration - Reactive data with Angular Signals
- Better performance - Optimized change detection
- Type safety - Full TypeScript support with generics