O'Reilly logo

AngularJS: Maintaining Web Applications by Amos Q. Haviv, Matt Frisbie, Chandermani, Rodrigo Branas

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

Lesson 8: Promises

In this Lesson, we will cover the following recipes:

  • Understanding and implementing a basic promise
  • Chaining promises and promise handlers
  • Implementing promise notifications
  • Implementing promise barriers with $q.all()
  • Creating promise wrappers with $q.when()
  • Using promises with $http
  • Using promises with $resource
  • Using promises with Restangular
  • Incorporating promises into native route resolves
  • Implementing nested ui-router resolves

Introduction

AngularJS promises are an odd and fascinating component of the framework. They are integral to a large number of core components, and yet many references only mention them in passing. They offer an extremely robust and advanced mechanism of application control, and as application complexity begins ...

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