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

Function controlCreateInternal

packages/core/src/render3/instructions/control.ts:42–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42export function controlCreateInternal(): void {
43 const lView = getLView();
44 const tView = getTView();
45 const tNode = getCurrentTNode()!;
46
47 if (tView.firstCreatePass) {
48 initializeControlFirstCreatePass(tView, tNode, lView);
49 }
50
51 if (tNode.controlDirectiveIndex === -1) {
52 return;
53 }
54 performanceMarkFeature('NgSignalForms');
55
56 const instance = lView[tNode.controlDirectiveIndex];
57 const controlDef = (tView.data[tNode.controlDirectiveIndex] as DirectiveDef<unknown>).controlDef!;
58 controlDef.create(instance, new ControlDirectiveHostImpl(lView, tView, tNode));
59}
60
61/**
62 * Calls the update function of the control directive at the given index.

Callers 2

inputBindingFunction · 0.90
ɵɵcontrolCreateFunction · 0.85

Calls 6

getLViewFunction · 0.90
getTViewFunction · 0.90
getCurrentTNodeFunction · 0.90
performanceMarkFeatureFunction · 0.90
createMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…