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

Function controlUpdateInternal

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

Source from the content-addressed store, hash-verified

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