The Wayback Machine - https://web.archive.org/web/20251015190007/https://angular.dev/api/forms/RequiredValidator
    • Overview
@angular/forms

RequiredValidator

directive
stable

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

API

    
      class RequiredValidator extends AbstractValidatorDirective {}
    
    

required

string | boolean

Tracks changes to the required attribute bound to this directive.

Description

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


Exported by

Jump to details
HTTPS · web.archive.org
← Home