MCPcopy Create free account
hub / github.com/angular/angular / compatForm

Function compatForm

packages/forms/signals/compat/src/api/compat_form.ts:138–144  ·  view source on GitHub ↗
(...args: any[])

Source from the content-addressed store, hash-verified

136): FieldTree<TModel>;
137
138export function compatForm<TModel>(...args: any[]): FieldTree<TModel> {
139 const [model, maybeSchema, maybeOptions] = normalizeFormArgs<TModel>(args);
140
141 const options = {...maybeOptions, adapter: new CompatFieldAdapter()};
142 const schema = maybeSchema || ((() => {}) as SchemaOrSchemaFn<TModel, PathKind>);
143 return form(model, schema, options);
144}

Callers 7

constructorMethod · 0.90
TestCmpClass · 0.90
TestCmpClass · 0.90
AppClass · 0.90
AppClass · 0.90
compat.spec.tsFile · 0.85

Calls 2

normalizeFormArgsFunction · 0.90
formFunction · 0.85

Tested by

no test coverage detected