Binds a validator to the given path that requires the value to match the standard email format. This function can only be called on string paths.
API
function email<TPathKind extends PathKind = PathKind.Root>( path: SchemaPath<string, 1, TPathKind>, config?: BaseValidatorConfig<string, TPathKind> | undefined, ): void;
@paramconfig
BaseValidatorConfig<string, TPathKind> | undefinedOptional, allows providing any of the following options:
-
error: Custom validation error(s) to be used instead of the defaultValidationError.email()or a function that receives theFieldContextand returns custom validation error(s).
@returns
void
Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/forms/signals/email