FormFieldBinding
Represents a binding between a field and a UI control through a FormField directive.
API
interface FormFieldBinding {
readonly element: HTMLElement;
readonly injector: Injector;
readonly state: Signal<ReadonlyFieldState<unknown, string | number>>;
focus(options?: FocusOptions | undefined): void;
}
element
HTMLElementThe HTML element on which the FormField directive is applied.
injector
InjectorThe node injector for the element hosting this field binding.
state
Signal<ReadonlyFieldState<unknown, string | number>>The FieldState of the field bound to the FormField directive.
focus
voidFocuses this field binding.
By default, this will focus element. However, custom controls can implement their own focus behavior.
@paramoptions
FocusOptions | undefined
@returns
void
Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/forms/signals/FormFieldBinding