()
| 40 | } |
| 41 | |
| 42 | export function controlCreateInternal(): void { |
| 43 | const lView = getLView(); |
| 44 | const tView = getTView(); |
| 45 | const tNode = getCurrentTNode()!; |
| 46 | |
| 47 | if (tView.firstCreatePass) { |
| 48 | initializeControlFirstCreatePass(tView, tNode, lView); |
| 49 | } |
| 50 | |
| 51 | if (tNode.controlDirectiveIndex === -1) { |
| 52 | return; |
| 53 | } |
| 54 | performanceMarkFeature('NgSignalForms'); |
| 55 | |
| 56 | const instance = lView[tNode.controlDirectiveIndex]; |
| 57 | const controlDef = (tView.data[tNode.controlDirectiveIndex] as DirectiveDef<unknown>).controlDef!; |
| 58 | controlDef.create(instance, new ControlDirectiveHostImpl(lView, tView, tNode)); |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * Calls the update function of the control directive at the given index. |
no test coverage detected
searching dependent graphs…