© Adam Freeman 2017

Adam Freeman, Pro Angular, 10.1007/978-1-4842-2307-9_24

24. Making Asynchronous HTTP Requests

Adam Freeman

(1)MILTON KEYNES MK6 3PA, UK

All the examples since Chapter 11 have relied on static data that has been hardwired into the application. In this chapter, I demonstrate how to use asynchronous HTTP requests, often called Ajax requests, to interact with a web service to get real data into an application. Table 24-1 puts HTTP requests in context.

Table 24-1. Putting Asynchronous HTTP Requests in Context

Question

Answer

What are they?

Asynchronous HTTP requests are HTTP requests sent by the browser on behalf of the application. The term asynchronous refers to the fact that the application continues to operate while the browser is ...

Get Pro Angular, 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.