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

Tips, tricks and tools for creating your own data-driven app, brought to you in partnership with Qlik.

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.

Explore data-driven apps with less coding and query writing, brought to you in partnership with Qlik.

Topics:

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}