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

Function controlCreateInternal

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

Source from the content-addressed store, hash-verified

43}
44
45export function controlCreateInternal(): void {
46 const lView = getLView();
47 const tView = getTView();
48 const tNode = getCurrentTNode()!;
49
50 if (tView.firstCreatePass) {
51 initializeControlFirstCreatePass(tView, tNode, lView);
52 }
53
54 if (tNode.controlDirectiveIndex === -1) {
55 return;
56 }
57 performanceMarkFeature('NgSignalForms');
58
59 const instance = lView[tNode.controlDirectiveIndex];
60 const controlDef = (tView.data[tNode.controlDirectiveIndex] as DirectiveDef<unknown>).controlDef!;
61 controlDef.create(instance, new ControlDirectiveHostImpl(lView, tView, tNode));
62}
63
64/**
65 * 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