NGValidators
A List of validators for Angular (2 and above) Forms based on validator.js. Current version only works with ReactiveFormsModule. FormsModule Directive validators will come soon.
Usage
Install
$ npm install --save ng-validators
Use as Model Based Validators
Make sure you have ReactiveFormsModule imported in your modules.
;;; ;
The use the Validators with FormControls
; ; ;
Contributing
Contribution Guideline isn't available yet, but PRs are so welcome to the develop branch.
Added Validators
- isAfter
- isAlpha
- isAlphanumeric
- isAscii
- isBase64
- isBefore
- isBoolean
- isByteLength
- isCreditCard
- isCurrency
- isDataUri
- isDate
- isDecimal
- isEmail
- isFloat
- isFQDN
- isHexColor
- isHexaDecimal
- isInt
- isIP
- isISBN
- isJSON
- isLowerCase
- isMacAddress
- isNull
- isNumeric
- isUpperCase
- isURL