April 2014
Intermediate to advanced
688 pages
17h 48m
English
CHAPTER 20
![]()
Services for Ajax and Promises
In this chapter, I describe the built-in AngularJS services for making Ajax requests and representing asynchronous activities. These are important services, not just in their own right but because they provide the underpinnings for services that I describe in later chapters. Table 20-1 summarizes this chapter.
Table 20-1. Chapter Summary
Problem |
Solution |
Listing |
|---|---|---|
Make Ajax requests. |
Use the $http service. |
1–3 |
Receive data from an Ajax request. |
Register callback functions using the success, error, or then method on the object returned by the $http method. |
4 |
Process non-JSON data. |
Receive the ... |
Read now
Unlock full access