length()
ts
function length(requiredLength): ValidatorFn;Defined in: types/custom-validators.ts:16
Parameters
| Parameter | Type | Description |
|---|---|---|
requiredLength | number | the exact length that the control's value must have. |
Returns
ValidatorFn
"invalid: true" or null.