API Reference / @dasch-ng/validators / NotBlankValidatorDirective
Class: NotBlankValidatorDirective
Defined in: not-blank/not-blank.validator.ts:16
Template-driven version of notBlankValidator: <input ngModel validateNotBlank />.
Implements
Validator
Constructors
Constructor
new NotBlankValidatorDirective():
NotBlankValidatorDirective
Returns
NotBlankValidatorDirective
Methods
validate()
validate(
control):ValidationErrors|null
Defined in: not-blank/not-blank.validator.ts:17
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