Angular 22 · Signals and services

Load data with a resource

Load async data into signals that track loading and error state.

users = httpResource<User[]>(() => '/api/users');

Official Angular 22 documentation

More signals and services commands

All signals and services commands · Angular 22 cheatsheet

Was this page helpful?