validators library

Functions

integer({num min num max }) ValidatorFn
Form value is either blank or can be parsed as an int, with optional min and max values (inclusive).
matches(Control other, String error) ValidatorFn
Validates that a control's value matches the value of another control, e.g. two password fields on a registration form.
number({num min num max }) ValidatorFn
Form value is either blank or can be parsed as a float, with optional min and max values (inclusive).
required() ValidatorFn
Form value is not a blank string.