• Overview
@angular/forms/signals

Binds a validator to the given path that requires the value to be greater than or equal to the given minValue. This function can only be called on number paths. In addition to binding a validator, this function adds MIN property to the field.

API

function min<
  TValue extends number | string | null,
  TPathKind extends PathKind = PathKind.Root,
>(
  path: SchemaPath<TValue, 1, TPathKind>,
  minValue: number | LogicFn<TValue, number | undefined, TPathKind>,
  config?: BaseValidatorConfig<TValue, TPathKind> | undefined,
): void;

min

void

Binds a validator to the given path that requires the value to be greater than or equal to the given minValue. This function can only be called on number paths. In addition to binding a validator, this function adds MIN property to the field.

@parampathSchemaPath<TValue, 1, TPathKind>

Path of the field to validate

@paramminValuenumber | LogicFn<TValue, number | undefined, TPathKind>

The minimum value, or a LogicFn that returns the minimum value.

@paramconfigBaseValidatorConfig<TValue, TPathKind> | undefined

Optional, allows providing any of the following options:

@returnsvoid
Jump to details