AngularJS Promises Part 1: How the Deferred API controls the Promise
In this first article on AngularJS's promises, we look at the relationship between the defer object and its promise, and show how the promise's functions are triggered by the deferred object.