What is the correct way to provide a custom async validator as a class implementing `AsyncValidator`?
-
A
Implement the `validate()` method returning Observable<ValidationErrors | null> or Promise<ValidationErrors | null>
-
B
Implement `asyncValidate()` returning a boolean observable
-
C
Extend `AbstractControl` and override `runAsync()`
-
D
Decorate the class with @AsyncValidator()