• Overview
@angular/forms

EmailValidator

directive

A directive that adds the email validator to controls marked with the email attribute. The directive is provided with the NG_VALIDATORS multi-provider list.

  
    class EmailValidator extends AbstractValidatorDirective {}
  
  

email

string | boolean

Tracks changes to the email attribute bound to this directive.

enabled

boolean
@paraminputboolean
@returnsboolean

ngOnChanges

void
@paramchangesSimpleChanges
@returnsvoid

validate

@paramcontrolAbstractControl<any, any>
@returnsValidationErrors | null

registerOnValidatorChange

void
@paramfn() => void
@returnsvoid
Jump to details