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

Function isFieldDirective

packages/compiler/src/typecheck/ops/signal_forms.ts:308–320  ·  view source on GitHub ↗
(meta: TcbDirectiveMetadata)

Source from the content-addressed store, hash-verified

306}
307
308export function isFieldDirective(meta: TcbDirectiveMetadata): boolean {
309 if (meta.name !== 'FormField') {
310 return false;
311 }
312
313 // Fast path, relevant for all external users.
314 if (meta.ref.moduleName === '@angular/forms/signals') {
315 return true;
316 }
317
318 // Slightly slower, but more accurate path. Fallback for internal / local compilation where we don't have the exact module.
319 return meta.hasNgFieldDirective;
320}
321
322function getSyntheticFieldBoundInput(
323 dir: TcbDirectiveMetadata,

Callers 2

isNativeFieldFunction · 0.85
isFormControlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected