feat(forms): add the submitted flag to NgForm and NgFormModel directives

Closes #2960

Closes #7449
This commit is contained in:
Anton Moiseev
2015-12-06 22:21:53 +03:00
committed by Misko Hevery
parent 89f61087c7
commit 420e83a396
4 changed files with 61 additions and 0 deletions

View File

@ -801,6 +801,7 @@ const COMMON = [
'NgForm.path:string[]',
'NgForm.removeControl(dir:NgControl):void',
'NgForm.removeControlGroup(dir:NgControlGroup):void',
'NgForm.submitted:boolean',
'NgForm.updateModel(dir:NgControl, value:any):void',
'NgFormControl',
'NgFormControl.asyncValidator:AsyncValidatorFn',
@ -830,6 +831,7 @@ const COMMON = [
'NgFormModel.path:string[]',
'NgFormModel.removeControl(dir:NgControl):void',
'NgFormModel.removeControlGroup(dir:NgControlGroup):any',
'NgFormModel.submitted:boolean',
'NgFormModel.updateModel(dir:NgControl, value:any):void',
'NgIf',
'NgIf.constructor(_viewContainer:ViewContainerRef, _templateRef:TemplateRef<Object>)',