Validators

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

Provides a set of validators used by form controls