W3cubDocs

/Angular

FormOptions

Options that may be specified when creating a form.

API

interface FormOptions<TModel> {
  injector?: Injector | undefined;
  name?: string | undefined;
  submission?: FormSubmitOptions<TModel, unknown> | 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, unknown> | undefined

Options that define how to handle form submission.

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/FormOptions