• Overview
@angular/forms

Validator

interface

An interface implemented by classes that perform synchronous validation.

  
    interface Validator {}
  
  

validate

Method that performs synchronous validation against the provided control.

@paramcontrolAbstractControl<any, any>

The control to validate against.

@returnsValidationErrors | null

registerOnValidatorChange

void

Registers a callback function to call when the validator inputs change.

@paramfn() => void

The callback function

@returnsvoid
Jump to details