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

Method _anyControls

packages/forms/src/model/form_group.ts:624–631  ·  view source on GitHub ↗

@internal

(condition: (c: AbstractControl) => boolean)

Source from the content-addressed store, hash-verified

622
623 /** @internal */
624 override _anyControls(condition: (c: AbstractControl) => boolean): boolean {
625 for (const [controlName, control] of Object.entries(this.controls)) {
626 if (this.contains(controlName as any) && condition(control as any)) {
627 return true;
628 }
629 }
630 return false;
631 }
632
633 /** @internal */
634 _reduceValue(): Partial<TControl> {

Callers

nothing calls this directly

Calls 2

containsMethod · 0.95
entriesMethod · 0.45

Tested by

no test coverage detected