API Reference / @dasch-ng/validators / NumberValidatorDirective
Class: NumberValidatorDirective
Defined in: number/number-validator.directive.ts:17
Implements
Validator
Constructors
Constructor
new NumberValidatorDirective():
NumberValidatorDirective
Returns
NumberValidatorDirective
Methods
validate()
validate(
control):ValidationErrors|null
Defined in: number/number-validator.directive.ts:18
Parameters
control
AbstractControl
The control to validate against.
Returns
ValidationErrors | null
A map of validation errors if validation fails, otherwise null.
Description
Method that performs synchronous validation against the provided control.
Implementation of
Validator.validate