(nodeIndex: number, hostView: LView)
| 150 | } |
| 151 | |
| 152 | export function getComponentLViewByIndex(nodeIndex: number, hostView: LView): LView { |
| 153 | // Could be an LView or an LContainer. If LContainer, unwrap to find LView. |
| 154 | ngDevMode && assertIndexInRange(hostView, nodeIndex); |
| 155 | const slotValue = hostView[nodeIndex]; |
| 156 | const lView = isLView(slotValue) ? slotValue : slotValue[HOST]; |
| 157 | return lView; |
| 158 | } |
| 159 | |
| 160 | /** Checks whether a given view is in creation mode */ |
| 161 | export function isCreationMode(view: LView): boolean { |
no test coverage detected
searching dependent graphs…