mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: outdated section in the Signal Forms | Custom controls page
This commit is contained in:
committed by
Pawel Kozlowski
parent
d955d67b57
commit
cb1841d10b
@@ -338,10 +338,6 @@ export class Login {
|
||||
|
||||
When the user types an invalid email, the FormField directive automatically updates `invalid()` and `errors()`. Your control can display the validation feedback.
|
||||
|
||||
### Signal types for state properties
|
||||
|
||||
Most state properties use `input()` (read-only from the form). Use `model()` for `touched` when your control updates it on user interaction. The `touched` property uniquely supports `model()`, `input()`, or `OutputRef` depending on your needs.
|
||||
|
||||
### Working with `debounce('blur')`
|
||||
|
||||
The [`debounce('blur')`](api/forms/signals/debounce) rule delays updates from the UI to the form model until the field is blurred, instead of applying them on every keystroke. Built-in controls report a blur to the form automatically. A custom control only participates if it emits its `touch` output in response to the native [`blur` event](https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event):
|
||||
|
||||
Reference in New Issue
Block a user