This chapter guided us through different methods of communicating with a back-end end to retrieve and manipulate data. We've started our journey by looking at the
$http APIs which is the fundamental service for issuing XHR and JSONP request in AngularJS. Not only we got familiar with the basic APIs of the
$http service, but also we had a close look at different ways of dealing with the cross-origin requests.
Many of the AngularJS asynchronous services rely on the Promise API to provide elegant interfaces. The
$http service heavily depends on promises so we had to exhaustively cover promises implementation in AngularJS. We saw that the
$q service provides a general purpose Promise API, and is tightly integrated with the rendering machinery. ...