(tView: TView, lView: LView, index: number, value: T)
| 140 | |
| 141 | /** Store a value in the `data` at a given `index`. */ |
| 142 | export function store<T>(tView: TView, lView: LView, index: number, value: T): void { |
| 143 | // We don't store any static data for local variables, so the first time |
| 144 | // we see the template, we should store as null to avoid a sparse array |
| 145 | if (index >= tView.data.length) { |
| 146 | tView.data[index] = null; |
| 147 | tView.blueprint[index] = null; |
| 148 | } |
| 149 | lView[index] = value; |
| 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…