When implementing a custom async validator, the returned observable should emit null for valid inputs and an error object for invalid inputs. This error object typically has a key that describes the error and a ______ value.

  • boolean
  • description
  • message
  • string
When implementing a custom async validator in Angular, the error object typically has a key that describes the error (e.g., 'customError') and a message value (a string) that provides details about the specific validation error. This message is useful for displaying error messages to users when their input is invalid.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *