Skip to content

Commit 92eeebf

Browse files
author
Kuldeep Saxena
authored
Added Submitted Property
1 parent b767b72 commit 92eeebf

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

docs/api/FormGroup.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ controls: {
6767
```
6868
##
6969
```ts
70+
submitted: boolean
71+
```
72+
A form is submitted if the `handleSubmit` event has been triggered on it.
73+
##
74+
```ts
7075
registerControl(name: string, control: AbstractControl): AbstractControl
7176
```
7277
Registers a control with the group's list of controls.
@@ -187,14 +192,14 @@ Otherwise, the value property is the best way to get the value of the group.
187192

188193
##
189194
```ts
190-
onSubmit():void
195+
handleSubmit():void
191196
```
192197
Submit action, can be used to tell the form that it has been submitted.
193-
Useful when `updateOn` property is `submit`.
198+
Useful when `updateOn` property is `handleSubmit`.
194199

195200
Example
196201
```ts
197-
<form onSubmit={this.form.onSubmit}/>
202+
<form onSubmit={this.form.handleSubmit}/>
198203
```
199204

200205
<br/></br>

0 commit comments

Comments
 (0)