Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

How to use Promises in AngularJS (In Cartoon Form)

DZone's Guide to

How to use Promises in AngularJS (In Cartoon Form)

· Web Dev Zone ·
Free Resource

Deploying code to production can be filled with uncertainty. Reduce the risks, and deploy earlier and more often. Download this free guide to learn more. Brought to you in partnership with Rollbar.

I know what you're thinking: Why aren't there more cartoons about AngularJS? Well, you're in luck, because this recent post from Andy Shora's blog consists of just that, and it's useful, too. Shora's cartoon illustrates a metaphor centered on bad weather and fishing trips that aims to demonstrate the purpose and use of promises in AngularJS.

The cartoon is actually a very concise and helpful explanation, and along with the narrative behind it, does a lot to clarify the concept. After the cartoon, though, the explanation gets technical, as Shora provides code samples to take the concept out of the realm of metaphor and into the real world.

For an original way of looking at promises in AngularJS, or for the gripping narrative of a son who (sometimes) breaks the promises he makes to his father, check out Shora's full post.

Deploying code to production can be filled with uncertainty. Reduce the risks, and deploy earlier and more often. Download this free guide to learn more. Brought to you in partnership with Rollbar.

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}