This chapter mainly focuses on how AngularJS communicates with server-side code, such as web APIs, web services, or Data Access Layer (DAL). In this chapter, we will discuss how to retrieve data from the server using $http
and $resources
. This chapter also talks about the authentication and security of an AngularJS application.
This chapter is organized as follows:
Communicating with the server using
$http
:GET
POST
HEAD
DELETE
PUT
JSONP
PATCH
Communicating with RESTful services
Authentication
Securing applications