Skip to content

Commit fc2e414

Browse files
bencodezenkirjs
authored andcommitted
docs: add signal forms custom controls guide
Co-authored-by: Leon Senft <[email protected]> docs: add signal forms custom controls guide
1 parent 8904142 commit fc2e414

File tree

4 files changed

+438
-7
lines changed

4 files changed

+438
-7
lines changed

adev/src/app/routing/sub-navigation-data.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,11 @@ const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [
452452
path: 'guide/forms/signals/validation',
453453
contentPath: 'guide/forms/signals/validation',
454454
},
455+
{
456+
label: 'Custom controls',
457+
path: 'guide/forms/signals/custom-controls',
458+
contentPath: 'guide/forms/signals/custom-controls',
459+
},
455460
{
456461
label: 'Comparison with other form systems',
457462
path: 'guide/forms/signals/comparison',

adev/src/content/examples/signal-forms/src/login-validation/app/app.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
@if (loginForm.email().touched() && loginForm.email().invalid()) {
99
<ul class="error-list">
10-
@for (error of loginForm.email().errors(); track $index) {
10+
@for (error of loginForm.email().errors(); track error) {
1111
<li>{{ error.message }}</li>
1212
}
1313
</ul>
@@ -22,7 +22,7 @@
2222

2323
@if (loginForm.password().touched() && loginForm.password().invalid()) {
2424
<div class="error">
25-
@for (error of loginForm.password().errors(); track $index) {
25+
@for (error of loginForm.password().errors(); track error) {
2626
<p>{{ error.message }}</p>
2727
}
2828
</div>

0 commit comments

Comments
 (0)