* @description * Validator that requires the control have a non-empty value. * * @usageNotes * * ### Validate that the field is non-empty * * ```ts * const control = new FormControl('', Validators.required); * * console.log(control.errors); // {required: true} * ```
(control: AbstractControl)
| 231 | * |
| 232 | */ |
| 233 | static required(control: AbstractControl): ValidationErrors | null { |
| 234 | return requiredValidator(control); |
| 235 | } |
| 236 | |
| 237 | /** |
| 238 | * @description |
no test coverage detected