O'Reilly logo

Mastering Web Application Development with AngularJS by Pawel Kozlowski, Peter Bacon Darwin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required