Chapter 12. Interacting with servers using HTTP
This chapter covers
- Working with the HttpClient service
- Creating a simple web server using the Node and Express frameworks
- Developing an Angular client that communicates with the Node server
- Intercepting HTTP requests and responses
Angular applications can communicate with any web server supporting HTTP, regardless of what server-side platform is used. In this chapter, we’ll show you how to use the HttpClient service offered by Angular. You’ll see how to make HTTP GET and POST methods with HttpClient. And you’ll learn how to intercept HTTP requests to implement cross-cutting concerns, such as global error handling.
This chapter starts with a brief overview of Angular’s HttpClient service, and ...
Get Angular Development with TypeScript, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.