()
| 68 | } |
| 69 | |
| 70 | export 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 | |
| 88 | class ControlDirectiveHostImpl implements ControlDirectiveHost { |
| 89 | private readonly lView: LView; |
no test coverage detected
searching dependent graphs…