Form Validators and a component to display them
Feel free to ping on on the angular/angular gitter if you have any issues
npm install --save angular-validators
A component to easily display validation messages
import { ValidationMessagesModule } from 'angular-validators';
<av-validation-messages [control]="myForm.controls.password"></av-validation-messages>
import { FormValidators } from 'angular-validators';
email: ['', FormValidators.required]
This package incldues all of Angulars inbuilt validators so you don't have to use them from two different places
Email
Url
Number
Alpha
Credit Card(Visa, Master Card, American Express, Diners, Discover, JBC)
Comparison - needs rework
Required
RequiredTrue
MinLength
MaxLength
Null
Compose
ComposeAsync
Feel free to suggest other validators to be included