• Overview
@angular/forms/signals

FormFieldBinding

interface

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

HTMLElement

The HTML element on which the FormField directive is applied.

injector

Injector

The 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

void

Focuses this field binding.

By default, this will focus element. However, custom controls can implement their own focus behavior.

@paramoptionsFocusOptions | undefined
@returnsvoid
Jump to details