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

Bugsnag monitors application stability, so you can make data-driven decisions on whether you should be building new features, or fixing bugs. Learn more.

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.

Monitor application stability with Bugsnag to decide if your engineering team should be building new features on your roadmap or fixing bugs to stabilize your application.Try it free.

Topics:

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}