MCPcopy Create free account
hub / github.com/angular/angular / injectViewContainerRef

Function injectViewContainerRef

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

Source from the content-addressed store, hash-verified

312 * @returns The ViewContainerRef instance to use
313 */
314export function injectViewContainerRef(): ViewContainerRef {
315 const previousTNode = getCurrentTNode() as TElementNode | TElementContainerNode | TContainerNode;
316 return createContainerRef(previousTNode, getLView());
317}
318
319class R3ViewContainerRef extends ViewContainerRef {
320 constructor(

Callers

nothing calls this directly

Calls 3

getCurrentTNodeFunction · 0.90
getLViewFunction · 0.90
createContainerRefFunction · 0.85

Tested by

no test coverage detected