• A validator that requires the value to be not equal to the other value.

    Parameters

    • otherKey: string | number

      The key of the other control.

    Returns ValidatorFn

    A validator function that returns an error map with the neq property if the validation check fails, otherwise null.