maxError
Create a max value error associated with the target field
API
function maxError( max: number, options: WithFieldTree<ValidationErrorOptions>, ): MaxValidationError; function maxError( max: number, options?: ValidationErrorOptions | undefined, ): WithoutFieldTree<MaxValidationError>;
function maxError(max: number, options: WithFieldTree<ValidationErrorOptions>): MaxValidationError;
Create a max value error associated with the target field
@parammax
numberThe max value constraint
@returns
MaxValidationError
function maxError(max: number, options?: ValidationErrorOptions | undefined): WithoutFieldTree<MaxValidationError>;
Create a max value error
@parammax
numberThe max value constraint
@returns
WithoutFieldTree<MaxValidationError>
Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/forms/signals/maxError