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
voidJump to details