feat(forms): add invalid prop to abstract controls (#10439)
This commit is contained in:
@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user