As I write this article, Angular 21.0 has been released, and it has changed the way data should be fetched in modern Angular apps. Usually, in an Angular application, data comes from an API and can be categorized as: Fetching data from the server Mutating data on the server In modern Angular apps, there areContinueContinue reading “Data Fetching in Modern Angular”
Tag Archives: resource
Getting Started with the httpResource API in Angular
Angular 19 introduced the Resource API for fetching data, and it should not be used for mutation operations, such as POST requests. However, an issue arose when working with the Resource API. One major problem was that it wasn’t built on top of HttpClient, which meant that interceptors did not function as expected. To address theContinueContinue reading “Getting Started with the httpResource API in Angular”