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

Function isFormControl

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

Source from the content-addressed store, hash-verified

483 * the `field` input.
484 */
485export function isFormControl(allDirectiveMatches: TcbDirectiveMetadata[]): boolean {
486 let result = false;
487 for (const match of allDirectiveMatches) {
488 if (match.inputs.hasBindingPropertyName('formField')) {
489 if (!isFieldDirective(match)) {
490 return false;
491 }
492 result = true;
493 }
494 }
495 return result;
496}

Callers 1

appendDirectiveInputsMethod · 0.90

Calls 2

isFieldDirectiveFunction · 0.85

Tested by

no test coverage detected