docs: fix min/max form template examples

This commit is contained in:
Michael Small
2026-06-01 12:17:42 -05:00
committed by Pawel Kozlowski
parent 3093edcad0
commit 42391329c2
@@ -480,7 +480,7 @@ import {form, FormField, required, min, max} from '@angular/forms/signals';
imports: [FormField],
template: `
<label>
Age (between {{ ageForm.age().min() }} and {{ ageForm.age().max() }})
Age (between {{ ageForm.age().min?.() }} and {{ ageForm.age().max?.() }})
<input type="number" [formField]="ageForm.age" />
</label>
@@ -521,12 +521,8 @@ import {form, FormField, max} from '@angular/forms/signals';
</label>
<label>
Quantity (max: {{ inventoryForm.quantity().max() }})
<input
type="number"
[formField]="inventoryForm.quantity"
[max]="inventoryForm.quantity().max()"
/>
Quantity (max: {{ inventoryForm.quantity().max?.() }})
<input type="number" [formField]="inventoryForm.quantity" />
</label>
`,
})