Validators

Stable

Class

Class Overview

class Validators {
static required(control: AbstractControl) : {[key: string]: boolean}
static requiredTrue(control: AbstractControl) : {[key: string]: boolean}
static minLength(minLength: number) : ValidatorFn
static maxLength(maxLength: number) : ValidatorFn
static pattern(pattern: string|RegExp) : ValidatorFn
static nullValidator(c: AbstractControl) : {[key: string]: boolean}
static compose(validators: ValidatorFn[]) : ValidatorFn
static composeAsync(validators: AsyncValidatorFn[]) : AsyncValidatorFn

}

Class Description

Static Members

exported from @angular/forms/index, defined in @angular/forms/src/validators.ts