• Validator that requires the control value to have no leading spaces.

    Parameters

    • c: AbstractControl

    Returns ValidationErrors | null

    An error object with the noLeadingSpace property if the validation check fails, otherwise null.