Skip to content

Commit 10a99ec

Browse files
committed
fixup! feat(@angular/cli): add initial set of signal form examples
1 parent ae50090 commit 10a99ec

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

packages/angular/cli/lib/examples/signal-forms/07-dynamic-arrays.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ This file provides the template for the form, using an `@for` block to render th
141141
## Usage Notes
142142

143143
- The "Remove" and "Add" buttons have `type="button"` to prevent them from submitting the form.
144-
- The "Submit" button is disabled based on the form's overall `valid` signal.
145144

146145
## How to Use This Example
147146

packages/angular/cli/lib/examples/signal-forms/16-server-side-validation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ This file provides the template, which disables the submit button based on the f
145145

146146
## Usage Notes
147147

148-
- The submit button is disabled while the form is invalid OR while it is submitting (`[disabled]="!registrationForm().valid() || registrationForm().submitting()"`).
148+
- The submit button is disabled while the form is submitting (`[disabled]="registrationForm().submitting()"`).
149149
- The `submit` function automatically sets the form's `submitting` signal to `true` before the async action and `false` after it completes.
150150
- If the async action returns an array of `ValidationError`, `submit` will automatically find the `field` specified in each error and add the error to that field's `errors` signal.
151151

packages/angular/cli/lib/examples/signal-forms/18-custom-aggregate-property.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ This file provides the template, which reads the custom `warnings` property and
131131
}
132132
</div>
133133

134-
<button type="submit" [disabled]="!registrationForm().valid()">Register</button>
134+
<button type="submit">Register</button>
135135
</form>
136136
```
137137

0 commit comments

Comments
 (0)