Loading topic
httpResource sends its requests through Angular's HttpClient. Before you declare any resource, the application has to provide HttpClient. This chapter shows how to do that and what goes wrong if you skip it.2 min readsignal, computed, and reading signals in templates). It also assumes basic HTTP knowledge: methods, query parameters, and status codes. httpResource needs Angular 19.2 or later, and it is marked experiment2 min readhttpResource like httpResource<User>(() => '/api/users/1'). Here you learn how to read the state of that resource in a template.2 min readprovideHttpClient(). You should also have declared a basic httpResource. Here you will see how signals drive the request.2 min readsignal, computed, reading signals in templates). It also assumes you know basic HTTP: query parameters and status codes. You should already have declared a basic httpResource and made it depend on a signal3 min readhttpResource and provideHttpClient() in your app.2 min readhttpResource and read its value(), isLoading() and error() signals in a template. It also assumes you know the idle pattern, where the request function returns undefined.2 min readhttpResource with a signal-based request and read value(), status() and error() in a template. It covers two behaviors that follow from that: repeating a request on demand, and what happens to a request that is no longer wanted.2 min readhttpResource and read its value(), status() and error() signals. It also assumes you know TypeScript type narrowing.2 min readhttpResource and read its value(), status() and error() signals. It also assumes you know what a response body and a Content-Type header are.2 min readhttpResource, know how provideHttpClient is set up, and have used functional HTTP interceptors. You will see how a resource sends its requests and what that means for cross-cutting concerns such as headers, logging and testing.2 min readhttpResource usage, and HTTP methods. It covers when to leave httpResource and use HttpClient directly.2 min readTestBed. It also assumes you know the httpResource basics from earlier chapters: the request function, value(), isLoading() and error().2 min read