Skip to content

Toxicable/angular-validators

Repository files navigation

npm version Join the chat at https://gitter.im/angular/angular

angular-validators

Form Validators and a component to display them
Feel free to ping on on the angular/angular gitter if you have any issues

Installation

npm install --save angular-validators

Validation Messages

A component to easily display validation messages

import { ValidationMessagesModule } from 'angular-validators';

<av-validation-messages [control]="myForm.controls.password"></av-validation-messages>

Validators

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

Validators

Email
Url
Number
Alpha
Credit Card(Visa, Master Card, American Express, Diners, Discover, JBC)

Cross Field Validator

Comparison - needs rework

@angular/form Validators

Required
RequiredTrue
MinLength
MaxLength
Null
Compose
ComposeAsync

Feel free to suggest other validators to be included

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published