Over a million developers have joined DZone.

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

Jumpstart your Angular applications with Indigo.Design, a unified platform for visual design, UX prototyping, code generation, and app development.

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.

Take a look at an Indigo.Design sample application to learn more about how apps are created with design to code software.


Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}