Learning JavaScript Promises: Practical Applications in ES6 and AngularJS
Publisher: Packt Publishing
Final Release Date: October 2015
Run time: 2 hours 37 minutes

Take your first steps into the world of JavaScript Promises to effortlessly code in an asynchronous environment

Promises—if you’ve ever coded an AJAX call, chances are you used them. But did you know they can be used to avoid race conditions, or that you can combine them into complex flows, and ultimately that they can make coding in asynchronous environments a breeze? Learning JavaScript Promises: Practical Applications in ES6 and AngularJS will help you learn all this and more. All the features are backed with a real-life examples, from a local weather forecast to a movie search on iTunes!

Starting from the basics of resolving and rejecting Promises, we will gradually move on to controlling flows by redirecting outcomes, making failures into successes, and vice versa, and modifying data to make it ready for display. Once you have familiarized yourself with Promises, we will review the many awesome ways of combining Promises, such as waiting for all tasks or grabbing the first task to complete. Finally, we will ensure that you fully master Promises with a section on extra Promises that will provide further useful information and examples. Throughout the course, you will apply every single feature you have discovered by creating meaningful widgets that utilize Promises, both in ES6 and in AngularJS.

This course will not only make you feel comfortable utilizing Promises when they are provided, but will also make you appreciate how much easier they can make your programming in the future. You will gain hands-on, real-life knowledge and experience of a great technology that is on the rise.

Who this course is for

This course is for developers who have a basic understanding of JavaScript and of AngularJS. Knowledge of the difference between Controllers and Services will be of use. Familiarity with JavaScript callbacks and function binding would be a bonus but is not a must.

What you will learn from this course

  • Create your own Promises to handle asynchronous processes
  • Decide the fate of a process: either as a success or a failed task
  • Add callbacks to determine what should be done upon completion
  • Chain promises into a full asynchronous flow
  • Change failures into successes to meet the needs of your specific application
  • Modify data to make it ready for display
  • Fight race conditions: wait for several parallel tasks to complete before moving onSimulate asynchronous behavior
  • Race Promises against each other and single out the fastest one
  • Choose between events and Promises
Table of Contents
Product Details
About the Author
Recommended for You
Customer Reviews
Buy 2 Get 1 Free Free Shipping Guarantee
Buying Options
Immediate Access - Go Digital what's this?
Video:  $74.99
(Streaming, Downloadable)