Skip to content

Commit 6b281d5

Browse files
author
Kuldeep Saxena
authored
Update FormArray.md
1 parent 0783fee commit 6b281d5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/api/FormArray.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ controls: AbstractControl[]
5959
```
6060
##
6161
```ts
62+
submitted: boolean
63+
```
64+
A form is submitted if the `handleSubmit` function has been called on it.
65+
##
66+
```ts
6267
at(index: number): AbstractControl
6368
```
6469
Get the [AbstractControl](AbstractControl.md) at the given index in the array.
@@ -177,14 +182,14 @@ Otherwise, the `value` property is the best way to get the `value` of the array.
177182

178183
##
179184
```ts
180-
onSubmit():void
185+
handleSubmit():void
181186
```
182187
Submit action, can be used to tell the form that it has been submitted.
183188
Useful when `updateOn` property is `submit`.
184189

185190
Example
186191
```ts
187-
<form onSubmit={this.form.onSubmit}/>
192+
<form onSubmit={this.form.handleSubmit}/>
188193
```
189194
<br/></br>
190195
Note: This document is a derivative of ["Form Array Document"](https://angular.io/api/forms/FormArray) by Google,

0 commit comments

Comments
 (0)