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

Function isFormControl

packages/compiler/src/typecheck/ops/signal_forms.ts:479–490  ·  view source on GitHub ↗
(allDirectiveMatches: TcbDirectiveMetadata[])

Source from the content-addressed store, hash-verified

477 * the `field` input.
478 */
479export function isFormControl(allDirectiveMatches: TcbDirectiveMetadata[]): boolean {
480 let result = false;
481 for (const match of allDirectiveMatches) {
482 if (match.inputs.hasBindingPropertyName('formField')) {
483 if (!isFieldDirective(match)) {
484 return false;
485 }
486 result = true;
487 }
488 }
489 return result;
490}

Callers 1

appendDirectiveInputsMethod · 0.90

Calls 2

isFieldDirectiveFunction · 0.85

Tested by

no test coverage detected