MCPcopy
hub / github.com/angular/angular / injectViewContainerRef

Function injectViewContainerRef

packages/core/src/linker/view_container_ref.ts:306–309  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

304 * @returns The ViewContainerRef instance to use
305 */
306export function injectViewContainerRef(): ViewContainerRef {
307 const previousTNode = getCurrentTNode() as TElementNode | TElementContainerNode | TContainerNode;
308 return createContainerRef(previousTNode, getLView());
309}
310
311class R3ViewContainerRef extends ViewContainerRef {
312 constructor(

Callers

nothing calls this directly

Calls 3

getCurrentTNodeFunction · 0.90
getLViewFunction · 0.90
createContainerRefFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…