class EmailValidator implements Validator { email validate(c: AbstractControl) : ValidationErrors| }
[email][formControlName]
[email][formControl]
[email][ngModel]
A Directive that adds the email
validator to controls marked with the email
attribute, via the NG_VALIDATORS
binding.
<input type="email" name="email" ngModel email> <input type="email" name="email" ngModel email="true"> <input type="email" name="email" ngModel [email]="true">
validate(c: AbstractControl) : ValidationErrors|
exported from forms/index, defined in forms/src/directives/validators.ts
© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/docs/ts/latest/api/forms/index/EmailValidator-directive.html