feat(forms): add invalid prop to abstract controls (#10439)

This commit is contained in:
Kara
2016-08-01 18:41:25 -07:00
committed by GitHub
parent 3e377f520e
commit e0eea6c2f4
4 changed files with 23 additions and 1 deletions

View File

@ -83,7 +83,6 @@ export abstract class AbstractControl {
private _parent: FormGroup|FormArray;
private _asyncValidationSubscription: any;
constructor(public validator: ValidatorFn, public asyncValidator: AsyncValidatorFn) {}
get value(): any { return this._value; }
@ -92,6 +91,8 @@ export abstract class AbstractControl {
get valid(): boolean { return this._status === VALID; }
get invalid(): boolean { return this._status === INVALID; }
/**
* Returns the errors of this control.
*/