You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/content/docs/challenges/forms/64-form-array.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ sidebar:
13
13
14
14
## Information
15
15
16
-
Dynamic forms often need repeating groups, like adding multiple contacts or social links. Angular Reactive Forms provides `FormArray` to manage these collections while keeping validation and structure predictable.
16
+
You already built a registration form with Reactive Forms (FormGroup / FormControl / FormArray). Now you will refactor it to **Signal-based forms**while keeping the UX, validations, and dynamic add/remove behavior.
17
17
18
18
You can learn more about Signal-based forms in the [Angular documentation](https://angular.dev/guide/forms/signals-based-forms).
19
19
@@ -28,14 +28,14 @@ The application contains a single-page registration form with:
28
28
- Last name (required)
29
29
- Relation (required)
30
30
- Email (required, valid email)
31
-
-**Network links** (FormArray)
32
-
-Network name (required)
33
-
-Handle (required)
31
+
-**Emails** (FormArray)
32
+
-Type (required)
33
+
-Email (required, valid email)
34
34
35
35
Current behavior:
36
36
37
-
- Users can add or remove contacts and network links.
38
-
- Submit is disabled until the form is valid.
37
+
- Users can add or remove contacts and emails.
38
+
- Submit marks all controls as touched and blocks submission when the form is invalid.
39
39
- Validation errors appear when fields are touched/dirty or after submitting.
40
40
- Submitted data is displayed as JSON after a successful submission.
41
41
@@ -49,7 +49,7 @@ After completing the challenge, your form should:
49
49
50
50
- Use Signal-based forms instead of `FormGroup`, `FormControl`, and `FormArray`.
51
51
- Keep the same validation rules for all fields.
52
-
- Preserve add/remove behavior for contacts and network links.
52
+
- Preserve add/remove behavior for contacts and emails.
53
53
- Keep the submit gating and submitted data preview.
0 commit comments