MCPcopy Index your code
hub / github.com/angular/angular / currentStateOf

Function currentStateOf

packages/forms/test/util.ts:76–80  ·  view source on GitHub ↗
(
  controls: AbstractControl[],
)

Source from the content-addressed store, hash-verified

74 * @param controls A collection of controls
75 */
76export function currentStateOf(
77 controls: AbstractControl[],
78): {errors: any; pending: boolean; status: string}[] {
79 return controls.map((c) => ({errors: c.errors, pending: c.pending, status: c.status}));
80}
81
82/**
83 * Returns an `EventEmitter` emitting the default error `{'async': true}`

Callers 1

form_group_spec.tsFile · 0.90

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…