Over a million developers have joined DZone.

How to use Promises in AngularJS (In Cartoon Form)

· Web Dev Zone

Start coding today to experience the powerful engine that drives data application’s development, 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.

Create data driven applications in Qlik’s free and easy to use coding environment, brought to you in partnership with Qlik.

Topics:

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

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

{{ parent.tldr }}

{{ parent.urlSource.name }}