FormOptions
Options that may be specified when creating a form.
API
interface FormOptions<TModel> {
injector?: Injector | undefined;
name?: string | undefined;
experimentalWebMcpTool?: { name: string; description: string; } | undefined;
submission?: FormSubmitOptions<TModel, unknown> | undefined;
}
injector
Injector | undefinedThe injector to use for dependency injection. If this is not provided, the injector for the current injection context, will be used.
name
string | undefinedThe name of the root form, used in generating name attributes for the fields.
experimentalWebMcpTool
{ name: string; description: string; } | undefined
@experimental
Configuration options to expose this form as an experimental WebMCP AI agent tool.
submission
FormSubmitOptions<TModel, unknown> | undefinedOptions 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