• Overview
@angular/forms/signals

FormOptions

interface

Options that may be specified when creating a form.

API

    
      interface FormOptions<TModel> {  injector?: Injector | undefined;  name?: string | undefined;  submission?: FormSubmitOptions<TModel> | undefined;}
    
    

injector

Injector | undefined

The injector to use for dependency injection. If this is not provided, the injector for the current injection context, will be used.

name

string | undefined

The name of the root form, used in generating name attributes for the fields.

submission

FormSubmitOptions<TModel> | undefined

Options that define how to handle form submission.

Jump to details