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

Function controlUpdateInternal

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

Source from the content-addressed store, hash-verified

68}
69
70export function controlUpdateInternal(): void {
71 if (ngDevMode && isInCheckNoChangesMode()) {
72 return;
73 }
74
75 const lView = getLView();
76 const tView = getTView();
77 const tNode = getSelectedTNode();
78
79 if (tNode.controlDirectiveIndex === -1) {
80 return;
81 }
82
83 const controlDef = (tView.data[tNode.controlDirectiveIndex] as DirectiveDef<unknown>).controlDef!;
84 const instance = lView[tNode.controlDirectiveIndex];
85 controlDef.update(instance, new ControlDirectiveHostImpl(lView, tView, tNode));
86}
87
88class ControlDirectiveHostImpl implements ControlDirectiveHost {
89 private readonly lView: LView;

Callers 2

inputBindingFunction · 0.90
ɵɵcontrolFunction · 0.85

Calls 5

isInCheckNoChangesModeFunction · 0.90
getLViewFunction · 0.90
getTViewFunction · 0.90
getSelectedTNodeFunction · 0.90
updateMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…