feat(forms): add equalsTo validator (#14052)

PR Close: #14052
This commit is contained in:
Toxicable
2017-01-22 16:13:47 +13:00
committed by Miško Hevery
parent 94b62c963d
commit 7b7ae5fe56
3 changed files with 65 additions and 2 deletions

View File

@ -543,6 +543,7 @@ export declare class Validators {
static email(control: AbstractControl): {
[key: string]: boolean;
};
static equalsTo(...fieldPaths: string[]): ValidatorFn;
static maxLength(maxLength: number): ValidatorFn;
static minLength(minLength: number): ValidatorFn;
static nullValidator(c: AbstractControl): {