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

Function isFieldDirective

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

Source from the content-addressed store, hash-verified

298}
299
300function isFieldDirective(meta: TcbDirectiveMetadata): boolean {
301 if (meta.name !== 'FormField') {
302 return false;
303 }
304
305 // Fast path, relevant for all external users.
306 if (meta.ref.moduleName === '@angular/forms/signals') {
307 return true;
308 }
309
310 // Slightly slower, but more accurate path. Fallback for internal / local compilation where we don't have the exact module.
311 return meta.hasNgFieldDirective;
312}
313
314function getSyntheticFieldBoundInput(
315 dir: TcbDirectiveMetadata,

Callers 2

isNativeFieldFunction · 0.85
isFormControlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected