Book Image

AngularJS Web Application Development Blueprints

By : Vinci J Rufus
Book Image

AngularJS Web Application Development Blueprints

By: Vinci J Rufus

Overview of this book

Table of Contents (17 chapters)
AngularJS Web Application Development Blueprints
About the Author
About the Reviewers

Chapter 4. Using REST Web Services in Your AngularJS App

In the previous chapter, we saw how to build an application prototype using static data models.

During the actual development, we would obviously like to work with live dynamic data and would need it to be tied to a backend. In AngularJS, the easiest and most common way of interacting with backend application is via Representational State Transfer (REST) web services, using JavaScript Object Notations (JSON) formats.

In this chapter, we will see how to build an app that will display the latest box office movies for a selected country. We will make use of the easy-to-use web service APIs from

Some of the things that we will learn in this chapter are as follows:

  • What are factories, services, and providers in AngularJS, and how they differ from each other

  • How to make calls to a web service using the $http service

  • How Dependency Injection (DI) works

  • Understand how asynchronous calls are made and the concept of promises...