Learning JavaScript Promises: Practical Applications in ES6 and AngularJS [Video]

Learning JavaScript Promises: Practical Applications in ES6 and AngularJS [Video]

Mathieu Chauvinc

1 customer reviews
Take your first steps into the world of JavaScript Promises to effortlessly code in an asynchronous environment
Mapt Subscription
FREE
€29.98/m after trial
Video
€69.36
RRP €81.58
Save 14%
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
€0.00
€69.36
€29.98p/m after trial
RRP €81.58
Subscription
Video
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Video Details

ISBN 139781784391355
Course Length2 hours and 37 minutes

Video Description

Promises are the new rage! Within a year, they will be an indispensable tool for JavaScript developers, both frontend and backend. New navigator APIs such as battery status, geolocation, indexedDB, as well as libraries and frameworks such as Angular, Ionic, and more have already adopted Promises as the best way to handle asynchronous flow programming. From the most simple async tasks to parallel, series, and other convoluted flows, Promises will make your code clean, easy to understand, and actually fun to write. 

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.

Style and Approach

This is a feature-packed and a hands-on course that contains up to 18 widgets, each of which uses a real-life application, and varying in complexity to match the progress of the course.

Table of Contents

Introducing Promises
The Course Overview
Promises – You have Been Using Them All Along
Make Me a Promise
Resolving and Rejecting ES6 Promises
Creating ES6 Promises
There Are Only Two Types of Promises in This World
Deciding What’s Next
No Second Chance
Callbacks Execution and Timing
The Future Is Coming – Angular v2 Promises
One Man's Garbage Is Another Man’s Gold
Chaining Promises
Making API Data User-ready
Changing Successes into Failure
Turning Failure into Success
Combining Promises
Parallel and Independent Tasks
Interdependent Tasks
Series Flow - with a Twist
Extra Promises
Make It All Asynchronous
The Pitfall of No Return
Promises Versus Events
Race to the Finish Line

What You Will Learn

  • 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 on
  • Combine a varying number of asynchronous tasks in a sequential order
  • Simulate asynchronous behavior 
  • Race Promises against each other and single out the fastest one
  • Choose between events and Promises

Authors

Screenshots

Table of Contents

Introducing Promises
The Course Overview
Promises – You have Been Using Them All Along
Make Me a Promise
Resolving and Rejecting ES6 Promises
Creating ES6 Promises
There Are Only Two Types of Promises in This World
Deciding What’s Next
No Second Chance
Callbacks Execution and Timing
The Future Is Coming – Angular v2 Promises
One Man's Garbage Is Another Man’s Gold
Chaining Promises
Making API Data User-ready
Changing Successes into Failure
Turning Failure into Success
Combining Promises
Parallel and Independent Tasks
Interdependent Tasks
Series Flow - with a Twist
Extra Promises
Make It All Asynchronous
The Pitfall of No Return
Promises Versus Events
Race to the Finish Line

Video Details

ISBN 139781784391355
Course Length2 hours and 37 minutes
Read More
From 1 reviews

Read More Reviews

Recommended for You

Getting started with Shiny [Video] Book Cover
Getting started with Shiny [Video]
€ 142.78
€ 121.38
Getting Started with Spring 5.0 [Video] Book Cover
Getting Started with Spring 5.0 [Video]
€ 142.78
€ 121.38
Fundamentals of Continuous Delivery Pipeline [Video] Book Cover
Fundamentals of Continuous Delivery Pipeline [Video]
€ 142.78
€ 121.38
Mastering Your Web Application Using Functional Javascript [Video] Book Cover
Mastering Your Web Application Using Functional Javascript [Video]
€ 142.78
€ 121.38
Responsive Web Development with HTML5, CSS3, and JavaScript [Video] Book Cover
Responsive Web Development with HTML5, CSS3, and JavaScript [Video]
€ 142.78
€ 121.38
Vue.js 2 Recipes [Video] Book Cover
Vue.js 2 Recipes [Video]
€ 142.78
€ 121.38