AsyncValidatorFn
we create asynchronous (async) validator functions that is used with FormControl
in reactive form. AsyncValidator
we create async validator directive. NG_ASYNC_VALIDATORS
is used as provider with multi: true
in our async validator directive.