Asynchronous Validators

In this lesson, we'll learn how to write an asynchronous validator.

We’re going to create another validator. The next validator we’ll create will demonstrate how to write asynchronous validators. Every validator we’ve worked with and written has run synchronously.

In some cases, we may need to make a request to a server to validate a value. Requests are asynchronous. We’ll need to wait until a response is given before we can allow the user to proceed.

Asynchronous validators are created similarly to synchronous validators. Here are the steps we’ll take to create one:

  1. Generate a new class for
...