Angular Validators

A set of commonly used validators not in core.


Equality

Equals

For making sure something is equal

{{validatorForm.equals2 | json}}

Not Equals

For making sure something isn't equal

{{validatorForm.notEquals2 | json}}

Min/Max

Min

For checking a number is greater than a value

{{validatorForm.min2 | json}}

Max

For checking a number is less than a value

{{validatorForm.max2 | json}}

Cards/CVC

Card

For checking a value is a valid card number.

Prepopulate with:

{{validatorForm.card | json}}

CVC (based on number on the left)

For checking a value is a valid cvc number based on a card type/number

{{validatorForm.cvc | json}}

Misc

Min Age

For making sure a person is of a minimum age

{{validatorForm.dateOfBirth | json}}