MCPcopy
hub / github.com/angular/angular / record

Method record

packages/forms/src/form_builder.ts:304–311  ·  view source on GitHub ↗

* @description * Constructs a new `FormRecord` instance. Accepts a single generic argument, which is an object * containing all the keys and corresponding inner control types. * * @param controls A collection of child controls. The key for each child is the name * under which it is re

(
    controls: {[key: string]: T},
    options: AbstractControlOptions | null = null,
  )

Source from the content-addressed store, hash-verified

302 * | submit').
303 */
304 record<T>(
305 controls: {[key: string]: T},
306 options: AbstractControlOptions | null = null,
307 ): FormRecord<ɵElement<T, null>> {
308 const reducedControls = this._reduceControls(controls);
309 // Cast to `any` because the inferred types are not as specific as Element.
310 return new FormRecord(reducedControls, options) as any;
311 }
312
313 /** @deprecated Use `nonNullable` instead. */
314 control<T>(

Callers 2

Calls 1

_reduceControlsMethod · 0.95

Tested by

no test coverage detected