• Overview
@angular/forms/signals

RootFieldContext

interface

The base field context that is available for all fields.

API

    
      interface RootFieldContext<TValue> {}
    
    

value

Signal<TValue>

A signal containing the value of the current field.

state

FieldState<TValue, string | number>

The state of the current field.

field

Field<TValue, string | number>

The current field.

valueOf

<P>(p: FieldPath<P, Root>) => P

Gets the value of the field represented by the given path.

stateOf

<P>(p: FieldPath<P, Root>) => FieldState<P, string | number>

Gets the state of the field represented by the given path.

fieldOf

<P>(p: FieldPath<P, Root>) => Field<P, string | number>

Gets the field represented by the given path.

Jump to details