RequiredValidator

RequiredValidator

Stable Directive

Class Overview

class RequiredValidator implements Validator {
  required : boolean
  validate(c: AbstractControl) : {[key: string]: any}
  registerOnValidatorChange(fn: () => void) : void
}

Selectors

:not([type=checkbox])[required][formControlName]

:not([type=checkbox])[required][formControl]

:not([type=checkbox])[required][ngModel]

Class Description

A Directive that adds the 登录查看完整内容