()
| 71 | } |
| 72 | |
| 73 | export 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 | |
| 91 | class ControlDirectiveHostImpl implements ControlDirectiveHost { |
| 92 | private readonly lView: LView; |
no test coverage detected