feat(forms): add NgForm method that resets submit state (#10715)

This commit is contained in:
Kara
2016-08-11 23:27:33 -07:00
committed by vikerman
parent 00e5b7d30a
commit 97f35714f7
4 changed files with 41 additions and 2 deletions

View File

@ -294,6 +294,7 @@ export declare class FormGroupDirective extends ControlContainer implements Form
removeControl(dir: NgControl): void;
removeFormArray(dir: FormArrayName): void;
removeFormGroup(dir: FormGroupName): void;
resetForm(value?: any): void;
updateModel(dir: NgControl, value: any): void;
}
@ -371,6 +372,7 @@ export declare class NgForm extends ControlContainer implements Form {
onSubmit(): boolean;
removeControl(dir: NgModel): void;
removeFormGroup(dir: NgModelGroup): void;
resetForm(value?: any): void;
setValue(value: {
[key: string]: any;
}): void;